diff options
Diffstat (limited to 'dist-build.sh')
-rwxr-xr-x | dist-build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dist-build.sh b/dist-build.sh new file mode 100755 index 0000000..808d899 --- /dev/null +++ b/dist-build.sh @@ -0,0 +1,20 @@ +#! /usr/bin/env bash + +# Create libcutl-x.y.z directory with the 'build' build system. +# + +trap 'exit 1' ERR + +v=`cat libcutl/version` + +echo "packaging libcutl-$v" +echo "EVERYTHING MUST BE COMMITTED!" + +# prepare libcutl-x.y.z +# +rm -rf libcutl-$v +mkdir libcutl-$v +cd libcutl +git archive master | tar -x -C ../libcutl-$v +cd .. +rm -f libcutl-$v/.gitignore |