19 |
|
|
20 |
me="`basename $0`" |
me="`basename $0`" |
21 |
|
|
22 |
# Install commands (these commands are also expected to understand the |
# Install commands (if the user specifies the `--verbose' option, it is |
23 |
# GNU -v (--verbose) option) |
# passed to these commands, so that feature only works if these commands |
24 |
|
# implement it too) |
25 |
LINK='cp -lf' |
LINK='cp -lf' |
26 |
COPY='cp -f' |
COPY='cp -f' |
27 |
REMOVE='rm -r' |
REMOVE='rm -r' |
28 |
|
MKDIR='mkdir -p' |
29 |
|
|
30 |
# Used to execute commands once once we create them |
# Used to execute commands once once we create them |
31 |
EXEC='sh' |
EXEC='sh' |
|
MKDIR='mkdir --verbose -p' |
|
32 |
|
|
33 |
NAWK=/usr/bin/nawk |
NAWK=/usr/bin/nawk |
34 |
|
|
158 |
maybe_mkdir () |
maybe_mkdir () |
159 |
{ |
{ |
160 |
if ! test -d "$1"; then |
if ! test -d "$1"; then |
161 |
$MKDIR "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 |
$MKDIR $VERBOSE "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 |
162 |
fi |
fi |
163 |
} |
} |
164 |
|
|