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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2 by rtoy, Thu Dec 18 21:50:19 2008 UTC revision 1.3 by rtoy, Mon Jun 27 15:45:19 2011 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  while getopts "bgh?t:" arg  usage() {
4        echo "make-src-dist.sh: [-bgh] [-t gnutar] [-I destdir] version"
5        echo "  -h           This help"
6        echo "  -b           Use bzip2 compression"
7        echo "  -g           Use gzip compression"
8        echo "  -t tar       Name/path to GNU tar"
9        echo "  -I destdir   Install directly to given directory instead of creating a tarball"
10        echo ""
11        echo 'Create a tar ball of the cmucl sources.  The tarball is named '
12        echo 'cmucl-src-$version.tar.bz2  (or gz if using gzip compression)'
13    }
14    
15    while getopts "bgh?t:I:" arg
16  do  do
17      case $arg in      case $arg in
18          b) ENABLE_BZIP=-b ;;          b) ENABLE_BZIP=-b ;;
19          g) ENABLE_GZIP=-g  ;;          g) ENABLE_GZIP=-g  ;;
20          t) GTAR=$OPTARG ;;          t) GTAR=$OPTARG ;;
21            I) INSTALL_DIR=$OPTARG ;;
22          h | \?) usage; exit 1 ;;          h | \?) usage; exit 1 ;;
23      esac      esac
24  done  done
# Line 24  if [ -n "$ENABLE_BZIP" ]; then Line 37  if [ -n "$ENABLE_BZIP" ]; then
37      ZIPEXT="bz2"      ZIPEXT="bz2"
38  fi  fi
39    
40  echo "  Compressing with $ZIP"  GTAR_OPTIONS="--exclude=CVS --exclude='*.pot.~*~'"
41  ${GTAR:-tar} --exclude=CVS -cf - src | ${ZIP} > cmucl-src-$VERSION.tar.$ZIPEXT  if [ -z "$INSTALL_DIR" ]; then
42        echo "  Compressing with $ZIP"
43        ${GTAR:-tar} ${GTAR_OPTIONS} -cf - src | ${ZIP} > cmucl-src-$VERSION.tar.$ZIPEXT
44    else
45        # Install in the specified directory
46        ${GTAR:-tar} ${GTAR_OPTIONS} -cf - src | (cd $INSTALL_DIR; ${GTAR:-tar} xf -)
47    fi

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.5