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}