aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-15 08:10:06 -0700
committerChris Larson <chris_larson@mentor.com>2010-11-15 10:02:39 -0700
commitc24d7b911fbbd11faa2958fcfc12b5a8d1742ee5 (patch)
tree7f5f6bc9c9c04363079e02cbb674c73758724d06
parentd066be77b3a6a236a83c2f69cacd5477e629834c (diff)
downloadopenembedded-tasks-reduction.tar.gz
bin/install: implement -D internallytasks-reduction
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rwxr-xr-xbin/install13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/install b/bin/install
index 4ad8172af8..1c9387556d 100755
--- a/bin/install
+++ b/bin/install
@@ -1,9 +1,13 @@
#!/bin/sh
+#
+# Portability notes:
+# - We allow what SuSv3 defines
+# - We implement -D internally
source $(dirname $0)/wrapper.sh
saved=""
-while getopts dbCcMpSsvB:f:g:m:o: opt; do
+while getopts dbCcMpSsvB:f:g:m:o:D opt; do
case "$opt" in
s)
# Ignore strip argument
@@ -12,6 +16,9 @@ while getopts dbCcMpSsvB:f:g:m:o: opt; do
save "-$opt"
save "$OPTARG"
;;
+ D)
+ createleading="1"
+ ;;
\?)
exit 1
;;
@@ -25,4 +32,8 @@ for arg; do
save "$arg"
done
+if [ $# == 2 -a -n "$createleading" ]; then
+ install -d $(dirname $2)
+fi
+
exec_real