From 93ae69e793b8ff343856a71053a7f32dce527e06 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 2 Jun 2003 15:26:20 +0000 Subject: [PATCH] (version): new variable. (--version): new option. (usage): improve message. --- config/mkinstalldirs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config/mkinstalldirs b/config/mkinstalldirs index cd8dff3966..4977302f60 100644 --- a/config/mkinstalldirs +++ b/config/mkinstalldirs @@ -1,14 +1,20 @@ #! /bin/sh # mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman +# Original author: Noah Friedman # 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 @@ while test $# -gt 0 ; do 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 -- 2.30.2