update mkinstalldirs from automake
authorKarl Berry <karl@freefriends.org>
Sun, 22 Jun 2003 22:47:40 +0000 (22:47 +0000)
committerKarl Berry <karl@freefriends.org>
Sun, 22 Jun 2003 22:47:40 +0000 (22:47 +0000)
config/ChangeLog
config/mkinstalldirs
config/srclist.txt

index 2d6fab6..95cc233 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-22    <karl@gnu.org>
+
+       * srclist.txt: update mkinstalldirs from automake.
+       * mkinstalldirs: update.
+
 2003-06-18    <karl@gnu.org>
 
        * config.{guess,sub}: update from prep.
index 4977302..8065dad 100644 (file)
@@ -4,7 +4,7 @@
 # Created: 1993-05-16
 # Public domain.
 
-version="mkinstalldirs 2003-06-02"
+scriptversion=2003-06-14.23
 
 errstatus=0
 dirmode=""
@@ -18,22 +18,35 @@ leading file name components.
 
 # process command line arguments
 while test $# -gt 0 ; do
-  case "${1}" in
-    -h | --help | --h*)                        # -h for help
-      echo "${usage}" 1>&2; exit 0 ;;
-    -m)                                        # -m PERM arg
+  case $1 in
+    -h | --help | --h*)         # -h for help
+      echo "$usage"
+      exit 0
+      ;;
+    -m)                         # -m PERM arg
       shift
-      test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
-      dirmode="${1}"
-      shift ;;
-    --version) echo "$version"; exit 0;;
-    --) shift; break ;;                        # stop option processing
-    -*) echo "${usage}" 1>&2; exit 1 ;;        # unknown option
-     *) break ;;                       # first non-opt arg
+      test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
+      dirmode=$1
+      shift
+      ;;
+    --version)
+      echo "$0 $scriptversion"
+      exit 0
+      ;;
+    --)                         # stop option processing
+      shift
+      break
+      ;;
+    -*)                         # unknown option
+      echo "$usage" 1>&2
+      exit 1
+      ;;
+    *)                          # first non-opt arg
+      break
+      ;;
   esac
 done
 
-# no `for var; do', it breaks on Solaris 2.7 (at least).
 for file
 do
   if test -d "$file"; then
@@ -52,12 +65,14 @@ case $dirmode in
     if mkdir -p -- . 2>/dev/null; then
       echo "mkdir -p -- $*"
       exec mkdir -p -- "$@"
-    fi ;;
+    fi
+    ;;
   *)
     if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
       echo "mkdir -m $dirmode -p -- $*"
       exec mkdir -m "$dirmode" -p -- "$@"
-    fi ;;
+    fi
+    ;;
 esac
 
 for file
@@ -69,7 +84,7 @@ do
   for d
   do
     pathcomp="$pathcomp$d"
-    case "$pathcomp" in
+    case $pathcomp in
       -*) pathcomp=./$pathcomp ;;
     esac
 
@@ -79,18 +94,17 @@ do
       mkdir "$pathcomp" || lasterr=$?
 
       if test ! -d "$pathcomp"; then
-        errstatus=$lasterr
+       errstatus=$lasterr
       else
-        if test ! -z "$dirmode"; then
-          echo "chmod $dirmode $pathcomp"
-
-          lasterr=""
-          chmod "$dirmode" "$pathcomp" || lasterr=$?
-
-          if test ! -z "$lasterr"; then
-            errstatus=$lasterr
-          fi
-        fi
+       if test ! -z "$dirmode"; then
+         echo "chmod $dirmode $pathcomp"
+         lasterr=""
+         chmod "$dirmode" "$pathcomp" || lasterr=$?
+
+         if test ! -z "$lasterr"; then
+           errstatus=$lasterr
+         fi
+       fi
       fi
     fi
 
@@ -99,3 +113,12 @@ do
 done
 
 exit $errstatus
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
index ba200c1..d4cdc77 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.14 2003-06-04 20:09:47 eggert Exp $
+# $Id: srclist.txt,v 1.15 2003-06-22 22:47:40 karl Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -9,7 +9,7 @@ $AUTOMAKE/lib/depcomp           config
 $AUTOMAKE/lib/install-sh       config
 $AUTOMAKE/lib/mdate-sh         config
 $AUTOMAKE/lib/missing          config
-# after next release $AUTOMAKE/lib/mkinstalldirs               config
+$AUTOMAKE/lib/mkinstalldirs    config
 #
 $TEXINFOSRC/doc/texinfo.tex    config
 
@@ -21,8 +21,6 @@ $GNUORG/fdl.texi              doc
 $GETTEXT/gettext.h             lib
 #
 $LIBCSRC/sysdeps/generic/strtoll.c     lib gpl
-#$LIBCSRC/malloc/obstack.c             lib gpl
-#$LIBCSRC/posix/getopt.c               lib gpl
 $LIBCSRC/posix/getopt.h                        lib gpl
 $LIBCSRC/posix/getopt1.c               lib gpl
 $LIBCSRC/posix/regex.h                 lib gpl
@@ -30,6 +28,10 @@ $LIBCSRC/string/strdup.c             lib gpl
 # This can be uncommented after libc mktime is fixed.
 #$LIBCSRC/time/mktime.c                        lib gpl
 #
+# These are close, but ...
+#$LIBCSRC/malloc/obstack.c             lib gpl
+#$LIBCSRC/posix/getopt.c               lib gpl
+#
 # - libc/sysdeps/generic has memcpy.c, memmove.c, strcasecmp.c, but they
 #   are totally different implementations.
 # - Likewise libc/string/strerror.c.