[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkinstalldirs --version
From: |
Alexandre Duret-Lutz |
Subject: |
Re: mkinstalldirs --version |
Date: |
Sun, 15 Jun 2003 00:04:01 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
>>> "Karl" == Karl Berry <address@hidden> writes:
Karl> Alexandre, can we put a date "version" into mkinstalldirs?
Karl> Gettext installs mkinstalldirs and thus can overwrite a newer version,
Karl> since right now there's no explicit way of knowing what the version is.
Karl> Here's a patch.
Karl> 2003-06-02 <address@hidden>
Karl> * mkinstalldirs (version): new variable.
Karl> (--version): new option.
Karl> (usage): improve message.
Thanks Karl. Actually your patch was not against the Automake
version of mkinstalldirs (which is the same as the one in
Gettext). It seems you are using your own version?
Anyway, I've installed the following patch. Jim already
installed a similar one in install-sh. (These will be
in Automake 1.8.)
Actually, an easy way to prevent such conflicts about
mkinstalldirs would be not to use it! install-sh supports the
-d option to create directories. Bruno, do you think setting
mkinstalldirs = $(install_sh) -d
would cause any issue? (I'm not only speaking about Gettext here,
I'm also wondering if it makes any sense to keep using mkinstalldirs
in Automake.)
2003-06-14 Karl Berry <address@hidden>
Alexandre Duret-Lutz <address@hidden>
* 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.
Index: lib/mkinstalldirs
===================================================================
RCS file: /cvs/automake/automake/lib/mkinstalldirs,v
retrieving revision 1.12
diff -u -r1.12 mkinstalldirs
--- lib/mkinstalldirs 21 Apr 2003 15:06:29 -0000 1.12
+++ lib/mkinstalldirs 14 Jun 2003 21:40:37 -0000
@@ -1,20 +1,26 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
-# Author: Noah Friedman <address@hidden>
+# Original author: Noah Friedman <address@hidden>
# 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 @@
dirmode=$1
shift
;;
+ --version)
+ echo "$0 $scriptversion"
+ exit 0
+ ;;
--) # stop option processing
shift
break
@@ -107,5 +117,8 @@
# 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
--
Alexandre Duret-Lutz