summaryrefslogtreecommitdiff
path: root/config/mkinstalldirs
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-18 13:21:05 +0000
committerJim Meyering <jim@meyering.net>2003-06-18 13:21:05 +0000
commit2b5eb31b814a9e3d63f35751e46896591285def0 (patch)
tree4db132983ef28ccb79263a031057b8d77fb03ec1 /config/mkinstalldirs
parentefa649366204c19c99b5284e4af553acfbad3ce6 (diff)
downloadcoreutils-2b5eb31b814a9e3d63f35751e46896591285def0.tar.xz
update from upstream
Diffstat (limited to 'config/mkinstalldirs')
-rw-r--r--config/mkinstalldirs23
1 files changed, 18 insertions, 5 deletions
diff --git a/config/mkinstalldirs b/config/mkinstalldirs
index e26e71490..8065dadd9 100644
--- a/config/mkinstalldirs
+++ b/config/mkinstalldirs
@@ -1,20 +1,26 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
-# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
-# Public domain
+# Public domain.
+
+scriptversion=2003-06-14.23
errstatus=0
dirmode=""
usage="\
-Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
+Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
+
+Create each directory DIR (with mode MODE, if specified), including all
+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
+ echo "$usage"
exit 0
;;
-m) # -m PERM arg
@@ -23,6 +29,10 @@ while test $# -gt 0 ; do
dirmode=$1
shift
;;
+ --version)
+ echo "$0 $scriptversion"
+ exit 0
+ ;;
--) # stop option processing
shift
break
@@ -107,5 +117,8 @@ 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:
-# mkinstalldirs ends here