/[cmucl]/src/tools/make-src-dist.sh
ViewVC logotype

Contents of /src/tools/make-src-dist.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Fri Aug 14 01:31:11 2009 UTC (4 years, 8 months ago) by rtoy
Branch: MAIN
CVS Tags: cross-sol-x86-base, sparc-tramp-assem-base, post-merge-intl-branch, snapshot-2010-12, snapshot-2010-11, cross-sol-x86-merged, snapshot-2011-06, snapshot-2011-04, intl-2-branch-base, snapshot-2011-02, snapshot-2011-03, snapshot-2011-01, release-20a-pre1, snapshot-2009-11, snapshot-2010-06, pre-merge-intl-branch, intl-branch-working-2010-02-19-1000, unicode-string-buffer-impl-base, intl-branch-working-2010-02-11-1000, release-20b-pre1, release-20b-pre2, unicode-string-buffer-base, cross-sparc-branch-base, intl-branch-base, snapshot-2010-05, snapshot-2010-04, snapshot-2010-07, sparc-tramp-assem-2010-07-19, snapshot-2010-01, snapshot-2010-03, snapshot-2010-02, snapshot-2010-08, release-20a-base, RELEASE_20b, RELEASE_20a, cross-sol-x86-2010-12-20, amd64-dd-start, intl-branch-2010-03-18-1300, snapshot-2009-12
Branch point for: RELEASE-20A-BRANCH, unicode-string-buffer-branch, cross-sol-x86-branch, cross-sparc-branch, sparc-tramp-assem-branch, amd64-dd-branch, unicode-string-buffer-impl-branch, intl-2-branch, RELEASE-20B-BRANCH, intl-branch
Changes since 1.1: +9 -3 lines
File MIME type: application/x-sh
Update make-dist.sh and make-src-dist.sh so that the source code can
installed when -I is given.
1 rtoy 1.1 #!/bin/sh
2    
3 rtoy 1.2 while getopts "bgh?t:I:" arg
4 rtoy 1.1 do
5     case $arg in
6     b) ENABLE_BZIP=-b ;;
7     g) ENABLE_GZIP=-g ;;
8     t) GTAR=$OPTARG ;;
9 rtoy 1.2 I) INSTALL_DIR=$OPTARG ;;
10 rtoy 1.1 h | \?) usage; exit 1 ;;
11     esac
12     done
13    
14     shift `expr $OPTIND - 1`
15    
16     VERSION=$1
17    
18     echo Creating source distribution
19     if [ -n "$ENABLE_GZIP" ]; then
20     ZIP="gzip -c"
21     ZIPEXT="gz"
22     fi
23     if [ -n "$ENABLE_BZIP" ]; then
24     ZIP="bzip2"
25     ZIPEXT="bz2"
26     fi
27    
28 rtoy 1.2 if [ -z "$INSTALL_DIR" ]; then
29     echo " Compressing with $ZIP"
30     ${GTAR:-tar} --exclude=CVS -cf - src | ${ZIP} > cmucl-src-$VERSION.tar.$ZIPEXT
31     else
32     # Install in the specified directory
33     ${GTAR:-tar} --exclude=CVS -cf - src | (cd $INSTALL_DIR; ${GTAR:-tar} xf -)
34     fi

  ViewVC Help
Powered by ViewVC 1.1.5