From a6cc06f8b10e2b6f8984747ae9194e563ba1ff17 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Sun, 24 Mar 2024 20:31:24 +0000 Subject: [PATCH] distrib --- dist.sh | 14 ++++++++++++++ install.sh | 1 + 2 files changed, 15 insertions(+) create mode 100755 dist.sh 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}