Shell script to prepare a source distribution archive.
[sgt/puzzles] / makedist.sh
diff --git a/makedist.sh b/makedist.sh
new file mode 100755 (executable)
index 0000000..c71d2e3
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh 
+
+perl mkfiles.pl
+
+mkdir tmp.$$
+mkdir tmp.$$/puzzles
+
+for i in *.c *.h LICENCE README Recipe mkfiles.pl Makefile.*; do
+  ln -s ../../$i tmp.$$/puzzles
+done
+
+tar -C tmp.$$ -chzvf - puzzles > ../puzzles.tar.gz
+
+rm -rf tmp.$$