Mercurial > hg > octave-kai > gnulib-hg
changeset 4345:bf0981b48110
(version): new variable.
(--version): new option.
(usage): improve message.
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Mon, 02 Jun 2003 15:26:20 +0000 |
parents | d6d868e8cc47 |
children | d83f80bb7c43 |
files | config/mkinstalldirs |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/config/mkinstalldirs +++ b/config/mkinstalldirs @@ -1,14 +1,20 @@ #! /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. + +version="mkinstalldirs 2003-06-02" 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 @@ -20,6 +26,7 @@ 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