X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=binary-distribution.sh;h=90e402c862ae74e7c23d5ca6bb7d38a19c2c7f70;hb=7ee29f16f6f741a4269b3cd536bc81b592c47fb5;hp=9794f04c308ca6958918a05e0764cf354a8d9e39;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/binary-distribution.sh b/binary-distribution.sh index 9794f04..90e402c 100755 --- a/binary-distribution.sh +++ b/binary-distribution.sh @@ -5,9 +5,20 @@ # DocBook-to-HTML converter, should also be run to create the # HTML version of the documentation.) -tar cf ../sbcl-x.y.z-binary.tar \ - output/sbcl.core src/runtime/sbcl \ - BUGS COPYING CREDITS INSTALL NEWS README \ - install.sh \ - doc/sbcl.1 doc/cmucl/cmu-user doc/*.htm* \ - pubring.pgp +# (Before sbcl-0.6.10, this was run in the sbcl/ directory and created +# a tar file with no directory prefixes. Since sbcl-0.6.10, we've +# switched over to trying to do this the way everyone else does.) + +b=${1:?"missing base directory name argument"} +tar -cf $b-binary.tar \ + $b/output/sbcl.core $b/src/runtime/sbcl \ + $b/BUGS $b/COPYING $b/CREDITS $b/INSTALL $b/NEWS $b/README \ + $b/install.sh \ + $b/doc/sbcl.1 \ + $b/pubring.pgp \ + $b/contrib/vanilla-module.mk \ + `for dir in $b/contrib/*; do + if test -d $dir && test -f $dir/test-passed; then + echo $dir + fi + done`