aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install
diff options
context:
space:
mode:
Diffstat (limited to 'bin/install')
-rwxr-xr-xbin/install35
1 files changed, 35 insertions, 0 deletions
diff --git a/bin/install b/bin/install
new file mode 100755
index 0000000000..a587fa0096
--- /dev/null
+++ b/bin/install
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+source $(dirname $0)/wrapper.sh
+
+saved=""
+while getopts dbCcMpSsvB:f:g:m:o:D opt; do
+ case "$opt" in
+ s)
+ # Ignore strip argument
+ ;;
+ B|f|g|m|o)
+ save "-$opt"
+ save "$OPTARG"
+ ;;
+ D)
+ createleading="1"
+ ;;
+ \?)
+ exit 1
+ ;;
+ *)
+ save "-$opt"
+ ;;
+ esac
+done
+shift $(($OPTIND - 1))
+for arg; do
+ save "$arg"
+done
+
+if [ $# == 2 -a -n "$createleading" ]; then
+ install -d $(dirname $2)
+fi
+
+exec_real