From 5eb4b9bf558b8a9d4aac7ef5545f711da4840d3b Mon Sep 17 00:00:00 2001 From: btakahashi Date: Wed, 6 Oct 2004 12:21:55 +0000 Subject: [PATCH] Added package-making script make-package.sh --- make-package.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 make-package.sh diff --git a/make-package.sh b/make-package.sh new file mode 100644 index 0000000..c39885c --- /dev/null +++ b/make-package.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +if ! [ -f configure ]; then + echo "./configure does not exist. Run autoconf." + exit 1 +fi + +/bin/rm -rf autom4te.cache + +X=`tempfile` +/bin/rm -f $X +mkdir $X + +BASENAME=rote-`grep ^AC_INIT configure.ac | cut -d, -f2 | cut -d' ' -f2 | \ + cut -d')' -f1 ` + +(cd .. && cp -a rote $X/$BASENAME) +(cd $X && find $X -name CVS -type d -exec rm -rf {} \; 2>/dev/null ) + +(cd $X && tar -zc $BASENAME) > ../$BASENAME.tar.gz + +/bin/rm -rf $X +echo "../$BASENAME.tar.gz generated." + -- 2.20.1