diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-18 17:51:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-18 17:51:15 +0200 |
commit | 8424d71f135b7872fd2db40969758ed7e3c1071c (patch) | |
tree | 3a03e253573809c126519715ea9204a5cf7bc99a | |
parent | 025cf71eddd104954ffe412d8c5f7e3cabbf8c8a (diff) |
Improve dist script to generate additional archives
-rwxr-xr-x | dist | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -67,17 +67,25 @@ fi # mkdir -p build2-$v -function dist() +# Can pass additional list of archives to copy. +# +function dist() # <project> [<archive>...] { local p=$1; shift local pv=`cat $p/version` - local f="$p-$pv.tar.gz" - b "dist($p-default/)" + rm -f build2-$v/$p-$pv.* - cp /tmp/$f build2-$v/ - cd build2-$v - sha256sum -b $f >$f.sha256 - cd .. + b "dist($p-default/)" + + local f + local e + for e in $* tar.gz; do + f="$p-$pv.$e" + cp /tmp/$f build2-$v/ + cd build2-$v + sha256sum -b $f >$f.sha256 + cd .. + done echo build2-$v/$f } @@ -87,7 +95,7 @@ for t in $tools; do cp $f cppget.org/repository/1/queue/$t/ done -dist build2-toolchain +dist build2-toolchain zip # Regenerate repository manifests. # |