From af5f4debf19be227c63d5cc89e4acd2961469724 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 27 Oct 2010 17:32:26 -0700 Subject: Add install wrapper rather than coreutils-native MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chris Larson Acked-by: Khem Raj Acked-by: Eric BĂ©nard Acked-by: Bernhard Reutner-Fischer --- bin/darwin/cp | 2 +- bin/darwin/sed | 2 +- bin/install | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100755 bin/install (limited to 'bin') diff --git a/bin/darwin/cp b/bin/darwin/cp index 0a523b7987..a753557cea 100755 --- a/bin/darwin/cp +++ b/bin/darwin/cp @@ -7,7 +7,7 @@ # - Otherwise, we stick to what SuSv3 defines -source $(dirname $0)/wrapper.sh +source $(dirname $0)/../wrapper.sh saved="" while getopts fpaRHLP opt; do diff --git a/bin/darwin/sed b/bin/darwin/sed index 352a3ca6e8..f52d09f075 100755 --- a/bin/darwin/sed +++ b/bin/darwin/sed @@ -21,7 +21,7 @@ # to reimplement -i internally in this script on some platforms. -source $(dirname $0)/wrapper.sh +source $(dirname $0)/../wrapper.sh case `uname -s` in Darwin) 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 -- cgit 1.2.3-korg