Fix REPLACE and REPLACE transforms when copying zero elements.
[sbcl.git] / binary-distribution.sh
bloba2e998e218c1dc830b9fcfe9a0cfd75bf89ec150
1 #!/bin/sh
2 set -e
4 # Create a binary distribution. (make.sh should be run first to create
5 # the various binary files, and make-doc.sh should also be run to
6 # create the HTML version of the documentation.)
8 # (Before sbcl-0.6.10, this was run in the sbcl/ directory and created
9 # a tar file with no directory prefixes. Since sbcl-0.6.10, we've
10 # switched over to trying to do this the way everyone else does.)
12 b=${1:?"missing base directory name argument"}
14 tar -cf $b-binary.tar \
15 $b/output/sbcl.core $b/src/runtime/sbcl $b/output/prefix.def \
16 $b/src/runtime/sbcl.mk \
17 `grep '^LIBSBCL=' $b/src/runtime/sbcl.mk | cut -d= -f2- | while read lib; do echo $b/src/runtime/$lib; done` \
18 $b/BUGS $b/COPYING $b/CREDITS $b/INSTALL $b/NEWS $b/README \
19 $b/install.sh $b/find-gnumake.sh $b/sbcl-pwd.sh $b/run-sbcl.sh \
20 $b/doc/sbcl.1 \
21 $b/pubring.pgp \
22 $b/contrib/asdf-module.mk \
23 `for contrib in $(cd $b/contrib && echo *); do
24 src_dir=$b/contrib/$contrib
25 cache_dir=$b/obj/asdf-cache/$contrib
26 if test -d $src_dir && test -f $cache_dir/test-passed.test-report; then
27 echo $src_dir/Makefile
28 echo $cache_dir/test-passed.test-report
30 done` \
31 $b/obj/sbcl-home