Skip to content

Commit

Permalink
bin/install: implement -D internally
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Larson <chris_larson@mentor.com>
  • Loading branch information
kergoth committed Nov 15, 2010
1 parent d066be7 commit c24d7b9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/install
@@ -1,9 +1,13 @@
#!/bin/sh #!/bin/sh
#
# Portability notes:
# - We allow what SuSv3 defines
# - We implement -D internally


source $(dirname $0)/wrapper.sh source $(dirname $0)/wrapper.sh


saved="" saved=""
while getopts dbCcMpSsvB:f:g:m:o: opt; do while getopts dbCcMpSsvB:f:g:m:o:D opt; do
case "$opt" in case "$opt" in
s) s)
# Ignore strip argument # Ignore strip argument
Expand All @@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
save "-$opt" save "-$opt"
save "$OPTARG" save "$OPTARG"
;; ;;
D)
createleading="1"
;;
\?) \?)
exit 1 exit 1
;; ;;
Expand All @@ -25,4 +32,8 @@ for arg; do
save "$arg" save "$arg"
done done


if [ $# == 2 -a -n "$createleading" ]; then
install -d $(dirname $2)
fi

exec_real exec_real

0 comments on commit c24d7b9

Please sign in to comment.