]> git.xolatile.top Git - emil-bake.git/commitdiff
distrib
authorEmil Williams <emilwilliams@tuta.io>
Sun, 24 Mar 2024 20:31:24 +0000 (20:31 +0000)
committerEmil Williams <emilwilliams@tuta.io>
Sun, 24 Mar 2024 20:31:24 +0000 (20:31 +0000)
dist.sh [new file with mode: 0755]
install.sh

diff --git a/dist.sh b/dist.sh
new file mode 100755 (executable)
index 0000000..137de6d
--- /dev/null
+++ b/dist.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# distribution tarball
+
+cd "$(dirname "$(readlink -f "$0")")"
+
+FILES='LICENSE README shake install.sh bake.c config.h bake.1'
+VERSION="$(cat VERSION)"
+TARGET="bake-$VERSION"
+
+mkdir -p $TARGET
+cp -f $FILES $TARGET
+tar cf $TARGET.tar $TARGET
+gzip -f $TARGET.tar
+rm -rf $TARGET
index 745c41111221f2affba007f1695e9a2f06c51f7b..cf735a680b982cefc89dfbf31e0ca73b7ceeb27e 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+# source install
 
 TARGET=${TARGET:-/usr/local}
 INSTALL=${INSTALL:-bake shake}