dea1fc8ad4aeb22d008bc60ba98456527a0b941f
[sbcl.git] / binary-distribution.sh
1 #!/bin/sh
2 set -e
3
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.)
7
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.)
11
12 b=${1:?"missing base directory name argument"}
13
14 tar -cf $b-binary.tar \
15     $b/output/sbcl.core $b/src/runtime/sbcl $b/output/prefix.def \
16     $b/BUGS $b/COPYING $b/CREDITS $b/INSTALL $b/NEWS $b/README \
17     $b/install.sh $b/find-gnumake.sh $b/sbcl-pwd.sh $b/run-sbcl.sh \
18     $b/doc/sbcl.1 \
19     $b/pubring.pgp \
20     $b/contrib/asdf-module.mk \
21     $b/contrib/vanilla-module.mk \
22     `for contrib in $(cd $b/contrib && echo *); do
23          src_dir=$b/contrib/$contrib
24          if test -d $src_dir && test -f $obj_dir/test-passed.test-report; then
25              find $src_dir -name CVS -type d -prune -o \! -type d \! -name '.cvsignore' -print
26          fi
27      done` \
28     $b/obj/sbcl-home