summaryrefslogtreecommitdiff
path: root/yhttpd-0.7.2/scripts/makedist.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:41 +0200
commit9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch)
tree631c295a4a4a16b57502b847626763a279bf6df7 /yhttpd-0.7.2/scripts/makedist.sh
parent13aaf70af703748fe096e0664c305cd202637ad2 (diff)
tagging tags
Diffstat (limited to 'yhttpd-0.7.2/scripts/makedist.sh')
-rwxr-xr-xyhttpd-0.7.2/scripts/makedist.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/yhttpd-0.7.2/scripts/makedist.sh b/yhttpd-0.7.2/scripts/makedist.sh
new file mode 100755
index 0000000..0814611
--- /dev/null
+++ b/yhttpd-0.7.2/scripts/makedist.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# The yhttpd 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