/[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.1 by rtoy, Mon Nov 24 22:21:19 2008 UTC revision 1.1.2.2 by rtoy, Thu Dec 18 21:50:19 2008 UTC
# Line 0  Line 1 
1    #!/bin/sh
2    
3    while getopts "bgh?t:" arg
4    do
5        case $arg in
6            b) ENABLE_BZIP=-b ;;
7            g) ENABLE_GZIP=-g  ;;
8            t) GTAR=$OPTARG ;;
9            h | \?) usage; exit 1 ;;
10        esac
11    done
12    
13    shift `expr $OPTIND - 1`
14    
15    VERSION=$1
16    
17    echo Creating source distribution
18    if [ -n "$ENABLE_GZIP" ]; then
19        ZIP="gzip -c"
20        ZIPEXT="gz"
21    fi
22    if [ -n "$ENABLE_BZIP" ]; then
23        ZIP="bzip2"
24        ZIPEXT="bz2"
25    fi
26    
27    echo "  Compressing with $ZIP"
28    ${GTAR:-tar} --exclude=CVS -cf - src | ${ZIP} > cmucl-src-$VERSION.tar.$ZIPEXT

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

  ViewVC Help
Powered by ViewVC 1.1.5