From: Emil Williams Date: Sun, 24 Mar 2024 20:31:24 +0000 (+0000) Subject: distrib X-Git-Tag: v20240302~1 X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=a6cc06f8b10e2b6f8984747ae9194e563ba1ff17;p=emil-bake.git distrib --- diff --git a/dist.sh b/dist.sh new file mode 100755 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 diff --git a/install.sh b/install.sh index 745c411..cf735a6 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ #!/bin/sh +# source install TARGET=${TARGET:-/usr/local} INSTALL=${INSTALL:-bake shake}