summaryrefslogtreecommitdiff
path: root/scripts/makedist.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:22:46 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:22:46 +0000
commitdee37a84ae65ba8bd1e0dab6132955bbc195fa57 (patch)
tree4397f736b9161f50cd0b00cdcfd2b0acc7c1af7e /scripts/makedist.sh
parent93ce2024a62325cbae5f2f6fd2155a4ef89cee63 (diff)
Diffstat (limited to 'scripts/makedist.sh')
-rwxr-xr-xscripts/makedist.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/makedist.sh b/scripts/makedist.sh
new file mode 100755
index 0000000..6c51a07
--- /dev/null
+++ b/scripts/makedist.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# The yChat Project (2005)
+#
+# This script creates a .tar.bz2 ball.
+
+pwd=`pwd` && base=`basename $pwd` && cd .. &&
+version=`grep VERSION $base/src/msgs.h | head -n 1 | cut -d'"' -f2` &&
+prefix="$base-$version"
+package="$prefix.tar.bz2"
+
+echo Copying files... &&
+rm -Rf $prefix 2>/dev/null >/dev/null
+cp -Rp $base $prefix && cd $prefix &&
+
+echo Cleaning... &&
+gmake mrproper 2>/dev/null >/dev/null
+find . -name CVS | xargs rm -Rf
+cd .. &&
+
+echo Compressing... &&
+if test -f $package; then rm -f $package; fi &&
+tar cjf $package $prefix &&
+
+echo Finishing... &&
+rm -Rf $prefix 2>/dev/null >/dev/null
+cd $base &&
+du -h ../$package