Raymond Toy pushed to branch issue-352-new-compression-for-dist at cmucl / cmucl
Commits:
-
db03eb76
by Raymond Toy at 2024-08-23T11:54:35-07:00
1 changed file:
Changes:
... | ... | @@ -12,10 +12,12 @@ |
12 | 12 | # $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/make-dist.sh,v 1.20 2011/04/11 16:34:49 rtoy Exp $
|
13 | 13 | |
14 | 14 | usage() {
|
15 | - echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] [-A arch] [-V version] [-o OS] dir"
|
|
15 | + echo "make-dist.sh: [-hbg] [-C compress] [-G group] [-O owner] [-I destdir] [-M mandir] [-A arch] [-V version] [-o OS] dir"
|
|
16 | 16 | echo " -h This help"
|
17 | 17 | echo " -b Use bzip2 compression"
|
18 | 18 | echo " -g Use gzip compression"
|
19 | + echo " -C compress Compression method to use for the tar archives. Must be one of"
|
|
20 | + echo " bzip2, xz, or gzip. The default depends on the OS"
|
|
19 | 21 | echo " -G group Group to use"
|
20 | 22 | echo " -O owner Owner to use"
|
21 | 23 | echo " -I destdir Install directly to given directory instead of creating a tarball"
|
... | ... | @@ -52,6 +54,7 @@ usage() { |
52 | 54 | exit 1
|
53 | 55 | }
|
54 | 56 | |
57 | +export GTAR
|
|
55 | 58 | def_arch_os () {
|
56 | 59 | case `uname -s` in
|
57 | 60 | SunOS)
|
... | ... | @@ -144,17 +147,19 @@ fi |
144 | 147 | # Verify that the -C option is valid
|
145 | 148 | if [ -n "$COMPRESS_ARG" ]; then
|
146 | 149 | case $COMPRESS_ARG in
|
147 | - -j) COMPRESS=-j
|
|
150 | + bzip2)
|
|
151 | + COMPRESS=-j
|
|
148 | 152 | COMPRESS_EXT=bz2
|
149 | 153 | COMPRESS_NAME=bzip2
|
150 | 154 | ;;
|
151 | - -J) # Defaults work
|
|
155 | + xz) # Defaults work
|
|
152 | 156 | ;;
|
153 | - -z) COMPRESS=-z
|
|
157 | + gzip)
|
|
158 | + COMPRESS=-z
|
|
154 | 159 | COMPRESS_EXT=gz
|
155 | 160 | COMPRESS_NAME=gzip
|
156 | 161 | ;;
|
157 | - *) echo '-C option "'$COMPRESS_ARG'" must be on of -j, -J or -z'
|
|
162 | + *) echo '-C option "'$COMPRESS_ARG'" must be one of bzip2, xz or gzip'
|
|
158 | 163 | exit 1
|
159 | 164 | ;;
|
160 | 165 | esac
|