From: Alexandre Duret-Lutz Date: Sat, 14 Jun 2003 22:01:41 +0000 (+0000) Subject: 2003-06-14 Karl Berry X-Git-Tag: Release-1-7b~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8293059ecabeb9358cc8f8bcc66143e5b36d6f47;p=thirdparty%2Fautomake.git 2003-06-14 Karl Berry Alexandre Duret-Lutz * mkinstalldirs (scriptversion): New variable. Setup emacs hooks to update it each time the file is written, as in install-sh. (usage): Improve message. (--version): New option. (--help): Output to stdout, not stderr. --- diff --git a/ChangeLog b/ChangeLog index f8570b7d7..bc20e14fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-06-14 Karl Berry + Alexandre Duret-Lutz + + * mkinstalldirs (scriptversion): New variable. Setup emacs hooks + to update it each time the file is written, as in install-sh. + (usage): Improve message. + (--version): New option. + (--help): Output to stdout, not stderr. + 2003-06-13 Paul Eggert * lib/install.sh (dsttmp, rmtmp): Do not use '#' in file names; diff --git a/lib/mkinstalldirs b/lib/mkinstalldirs index e26e71490..8065dadd9 100755 --- a/lib/mkinstalldirs +++ b/lib/mkinstalldirs @@ -1,20 +1,26 @@ #! /bin/sh # mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman +# Original author: Noah Friedman # 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