FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update from automake cvs. · gnuplot/gnuplot@482ebff · GitHub

Repository navigation

Commit 482ebff

Browse files
Lars Hecking
committed
Update from automake cvs.
1 parent beeae91 commit 482ebff

3 files changed

Lines changed: 93 additions & 83 deletions

File tree

‎install-sh‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ then
109109
echo "install: no input file specified"
110110
exit 1
111111
else
112-
true
112+
:
113113
fi
114114

115115
if [ x"$dir_arg" != x ]; then
@@ -120,17 +120,17 @@ if [ x"$dir_arg" != x ]; then
120120
instcmd=:
121121
chmodcmd=""
122122
else
123-
instcmd=mkdir
123+
instcmd=$mkdirprog
124124
fi
125125
else
126126

127127
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
128128
# might cause directories to be created, which would be especially bad
129129
# if $src (and thus $dsttmp) contains '*'.
130130

131-
if [ -f $src -o -d $src ]
131+
if [ -f "$src" ] || [ -d "$src" ]
132132
then
133-
true
133+
:
134134
else
135135
echo "install: $src does not exist"
136136
exit 1
@@ -141,7 +141,7 @@ else
141141
echo "install: no destination specified"
142142
exit 1
143143
else
144-
true
144+
:
145145
fi
146146

147147
# If destination is a directory, append the input filename; if your system
@@ -151,7 +151,7 @@ else
151151
then
152152
dst="$dst"/`basename $src`
153153
else
154-
true
154+
:
155155
fi
156156
fi
157157

@@ -163,8 +163,8 @@ dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
163163

164164
# Skip lots of stat calls in the usual case.
165165
if [ ! -d "$dstdir" ]; then
166-
defaultIFS='
167-
'
166+
defaultIFS='
167+
'
168168
IFS="${IFS-${defaultIFS}}"
169169

170170
oIFS="${IFS}"
@@ -183,7 +183,7 @@ while [ $# -ne 0 ] ; do
183183
then
184184
$mkdirprog "${pathcomp}"
185185
else
186-
true
186+
:
187187
fi
188188

189189
pathcomp="${pathcomp}/"
@@ -194,10 +194,10 @@ if [ x"$dir_arg" != x ]
194194
then
195195
$doit $instcmd $dst &&
196196

197-
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
198-
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
199-
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
200-
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
197+
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
198+
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
199+
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
200+
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
201201
else
202202

203203
# If we're going to rename the final executable, determine the name now.
@@ -216,7 +216,7 @@ else
216216
then
217217
dstfile=`basename $dst`
218218
else
219-
true
219+
:
220220
fi
221221

222222
# Make a temp file name in the proper directory.
@@ -235,10 +235,10 @@ else
235235
# ignore errors from any of these, just make sure not to ignore
236236
# errors from the above "$doit $instcmd $src $dsttmp" command.
237237

238-
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
239-
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
240-
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
241-
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
238+
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
239+
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
240+
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
241+
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
242242

243243
# Now rename the file to the real destination.
244244

‎missing‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Common stub for a few missing GNU programs while installing.
3-
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
3+
# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
44
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
55

66
# This program is free software; you can redistribute it and/or modify
@@ -293,23 +293,23 @@ WARNING: \`$1' is missing on your system. You should only need it if
293293
# Look for gnutar/gtar before invocation to avoid ugly error
294294
# messages.
295295
if (gnutar --version > /dev/null 2>&1); then
296-
gnutar ${1+"$@"} && exit 0
296+
gnutar "$@" && exit 0
297297
fi
298298
if (gtar --version > /dev/null 2>&1); then
299-
gtar ${1+"$@"} && exit 0
299+
gtar "$@" && exit 0
300300
fi
301301
firstarg="$1"
302302
if shift; then
303303
case "$firstarg" in
304304
*o*)
305305
firstarg=`echo "$firstarg" | sed s/o//`
306-
tar "$firstarg" ${1+"$@"} && exit 0
306+
tar "$firstarg" "$@" && exit 0
307307
;;
308308
esac
309309
case "$firstarg" in
310310
*h*)
311311
firstarg=`echo "$firstarg" | sed s/h//`
312-
tar "$firstarg" ${1+"$@"} && exit 0
312+
tar "$firstarg" "$@" && exit 0
313313
;;
314314
esac
315315
fi

‎mkinstalldirs‎

Lines changed: 70 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Created: 1993-05-16
55
# Public domain
66

7-
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
8-
97
errstatus=0
108
dirmode=""
119

@@ -14,18 +12,29 @@ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
1412

1513
# process command line arguments
1614
while test $# -gt 0 ; do
17-
case "${1}" in
18-
-h | --help | --h* ) # -h for help
19-
echo "${usage}" 1>&2; exit 0 ;;
20-
-m ) # -m PERM arg
21-
shift
22-
test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
23-
dirmode="${1}"
24-
shift ;;
25-
-- ) shift; break ;; # stop option processing
26-
-* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
27-
* ) break ;; # first non-opt arg
28-
esac
15+
case $1 in
16+
-h | --help | --h*) # -h for help
17+
echo "$usage" 1>&2
18+
exit 0
19+
;;
20+
-m) # -m PERM arg
21+
shift
22+
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
23+
dirmode=$1
24+
shift
25+
;;
26+
--) # stop option processing
27+
shift
28+
break
29+
;;
30+
-*) # unknown option
31+
echo "$usage" 1>&2
32+
exit 1
33+
;;
34+
*) # first non-opt arg
35+
break
36+
;;
37+
esac
2938
done
3039

3140
for file
@@ -38,64 +47,65 @@ do
3847
done
3948

4049
case $# in
41-
0) exit 0 ;;
50+
0) exit 0 ;;
4251
esac
4352

4453
case $dirmode in
45-
'')
46-
if mkdir -p -- . 2>/dev/null; then
47-
echo "mkdir -p -- $*"
48-
exec mkdir -p -- "$@"
49-
fi ;;
50-
*)
51-
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
52-
echo "mkdir -m $dirmode -p -- $*"
53-
exec mkdir -m "$dirmode" -p -- "$@"
54-
fi ;;
54+
'')
55+
if mkdir -p -- . 2>/dev/null; then
56+
echo "mkdir -p -- $*"
57+
exec mkdir -p -- "$@"
58+
fi
59+
;;
60+
*)
61+
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
62+
echo "mkdir -m $dirmode -p -- $*"
63+
exec mkdir -m "$dirmode" -p -- "$@"
64+
fi
65+
;;
5566
esac
5667

5768
for file
5869
do
59-
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
60-
shift
61-
62-
pathcomp=
63-
for d
64-
do
65-
pathcomp="$pathcomp$d"
66-
case "$pathcomp" in
67-
-* ) pathcomp=./$pathcomp ;;
68-
esac
69-
70-
if test ! -d "$pathcomp"; then
71-
echo "mkdir $pathcomp"
72-
73-
mkdir "$pathcomp" || lasterr=$?
74-
75-
if test ! -d "$pathcomp"; then
76-
errstatus=$lasterr
77-
else
78-
if test ! -z "$dirmode"; then
79-
echo "chmod $dirmode $pathcomp"
80-
81-
lasterr=""
82-
chmod "$dirmode" "$pathcomp" || lasterr=$?
83-
84-
if test ! -z "$lasterr"; then
85-
errstatus=$lasterr
86-
fi
87-
fi
88-
fi
89-
fi
90-
91-
pathcomp="$pathcomp/"
92-
done
70+
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
71+
shift
72+
73+
pathcomp=
74+
for d
75+
do
76+
pathcomp="$pathcomp$d"
77+
case $pathcomp in
78+
-*) pathcomp=./$pathcomp ;;
79+
esac
80+
81+
if test ! -d "$pathcomp"; then
82+
echo "mkdir $pathcomp"
83+
84+
mkdir "$pathcomp" || lasterr=$?
85+
86+
if test ! -d "$pathcomp"; then
87+
errstatus=$lasterr
88+
else
89+
if test ! -z "$dirmode"; then
90+
echo "chmod $dirmode $pathcomp"
91+
lasterr=""
92+
chmod "$dirmode" "$pathcomp" || lasterr=$?
93+
94+
if test ! -z "$lasterr"; then
95+
errstatus=$lasterr
96+
fi
97+
fi
98+
fi
99+
fi
100+
101+
pathcomp="$pathcomp/"
102+
done
93103
done
94104

95105
exit $errstatus
96106

97107
# Local Variables:
98108
# mode: shell-script
99-
# sh-indentation: 3
109+
# sh-indentation: 2
100110
# End:
101111
# mkinstalldirs ends here

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL