aboutsummaryrefslogtreecommitdiffstats
path: root/dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dist.sh')
-rwxr-xr-xdist.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/dist.sh b/dist.sh
new file mode 100755
index 0000000..2163f33
--- /dev/null
+++ b/dist.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+file_list="example man www LICENSE Makefile dist.sh man2html.sh mtest.h \
+ mtest.sh readme.md"
+
+dname="mtest-$(cat version)"
+
+mkdir "${dname}"
+cp -r ${file_list} "${dname}"
+tar -czf "${dname}.tar.gz" "${dname}"
+rm -rf "${dname}"