/[packages]/cauldron/gzip/current/SOURCES/gzip-1.3.12-openbsd-owl-tmp.patch
ViewVC logotype

Contents of /cauldron/gzip/current/SOURCES/gzip-1.3.12-openbsd-owl-tmp.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 270 - (show annotations) (download)
Fri Jan 7 19:33:46 2011 UTC (13 years, 3 months ago) by tmb
File size: 1586 byte(s)
imported package gzip
1 --- gzip-1.3.12/znew.in.owl-tmp 2007-06-04 09:15:11.000000000 +0200
2 +++ gzip-1.3.12/znew.in 2007-06-04 09:23:18.000000000 +0200
3 @@ -55,28 +55,27 @@
4 # block is the disk block size (best guess, need not be exact)
5
6 warn="(does not preserve modes and timestamp)"
7 -tmp=${TMPDIR-/tmp}/zfoo.$$
8 -set -C
9 -echo hi > $tmp || exit
10 -if test -z "`(${CPMOD-cpmod} $tmp $tmp) 2>&1`"; then
11 - cpmod=${CPMOD-cpmod}
12 +cpmod=
13 +cpmodarg=
14 +if type ${CPMOD:-cpmod} 2>/dev/null; then
15 + cpmod=${CPMOD:-cpmod}
16 warn=""
17 fi
18
19 -if test -z "$cpmod" && ${TOUCH-touch} -r $tmp $tmp 2>/dev/null; then
20 - cpmod="${TOUCH-touch}"
21 +if test -z "$cpmod"; then
22 + cpmod=touch
23 cpmodarg="-r"
24 warn="(does not preserve file modes)"
25 fi
26
27 -# check if GZIP env. variable uses -S or --suffix
28 -gzip -q $tmp
29 -ext=`echo $tmp* | sed "s|$tmp||"`
30 -rm -f $tmp*
31 -if test -z "$ext"; then
32 - echo znew: error determining gzip extension
33 - exit 1
34 -fi
35 +case "$GZIP" in
36 + *-S*) ext=`echo "$GZIP" | sed 's/^.*-S[[:space:]]*\([^[:space:]]*\).*$/\1/'`
37 + ;;
38 + *-suffix*) ext=`echo "$GZIP" | sed 's/^.*--suffix=\([^[:space:]]*\).*$/\1/'`
39 + ;;
40 + *) ext='.gz'
41 + ;;
42 +esac
43 if test "$ext" = ".Z"; then
44 echo znew: cannot use .Z as gzip extension.
45 exit 1

  ViewVC Help
Powered by ViewVC 1.1.30