projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add glibc bug 1218.
[gnulib.git]
/
build-aux
/
mkinstalldirs
diff --git
a/build-aux/mkinstalldirs
b/build-aux/mkinstalldirs
index
5d26a48
..
259dbfc
100755
(executable)
--- a/
build-aux/mkinstalldirs
+++ b/
build-aux/mkinstalldirs
@@
-1,7
+1,7
@@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
-scriptversion=2005-0
2-02.21
+scriptversion=2005-0
6-29.22
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
@@
-12,7
+12,7
@@
scriptversion=2005-02-02.21
# <automake-patches@gnu.org>.
errstatus=0
# <automake-patches@gnu.org>.
errstatus=0
-dirmode=
""
+dirmode=
usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
@@
-103,13
+103,21
@@
esac
for file
do
for file
do
- set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ case $file in
+ /*) pathcomp=/ ;;
+ *) pathcomp= ;;
+ esac
+ oIFS=$IFS
+ IFS=/
+ set fnord $file
shift
shift
+ IFS=$oIFS
- pathcomp=
for d
do
for d
do
- pathcomp="$pathcomp$d"
+ test "x$d" = x && continue
+
+ pathcomp=$pathcomp$d
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
@@
-124,7
+132,7
@@
do
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
- lasterr=
""
+ lasterr=
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
@@
-134,7
+142,7
@@
do
fi
fi
fi
fi
- pathcomp=
"$pathcomp/"
+ pathcomp=
$pathcomp/
done
done
done
done