diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-03-05 15:19:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-03-05 15:19:23 +0200 |
commit | 65c833caccd20efe3aa386e168998ca50cb610ad (patch) | |
tree | 1f4fa9a2379cb367f8f63993b1b2af080c944f1b /dist-build.sh |
Add dist scripts
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 |