From: Kurt Zeilenga Date: Mon, 25 Jan 1999 02:30:58 +0000 (+0000) Subject: Move install.sh to install-sh. install.sh name may cause problems X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~701 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01cd11c3081de4be2f7c43eed50ec04d7f3c5b29;p=openldap Move install.sh to install-sh. install.sh name may cause problems with some 'make' programs that have a rule to create 'install' from it there is no 'Makefile'. (per autoconf 2.12). --- diff --git a/build/install-sh b/build/install-sh new file mode 100755 index 0000000000..b9ac07f89a --- /dev/null +++ b/build/install-sh @@ -0,0 +1,45 @@ +#!/bin/sh +# simple BSD-like install replacement +# +# Copyright (c) 1994 The Regents of the University of Michigan +# + +MODE=0755 +USAGE="usage: $0 [-c] [-m mode] file dir" + +while [ $# != 0 ]; do + case "$1" in + -c) + ;; + -m) + MODE=$2 + shift + ;; + -*) + echo "$USAGE" + exit 1 + ;; + *) + break + ;; + esac + shift +done + +if [ $# != 2 ]; then + echo "$USAGE" + exit 1 +fi + +FILE=$1 +DIR=$2 + +cp $FILE $DIR +if [ -d $DIR ]; then + chmod $MODE $DIR/`basename $FILE` +else +# +# DIR is really the destination file +# + chmod $MODE $DIR +fi diff --git a/build/install.sh b/build/install.sh deleted file mode 100755 index b9ac07f89a..0000000000 --- a/build/install.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# simple BSD-like install replacement -# -# Copyright (c) 1994 The Regents of the University of Michigan -# - -MODE=0755 -USAGE="usage: $0 [-c] [-m mode] file dir" - -while [ $# != 0 ]; do - case "$1" in - -c) - ;; - -m) - MODE=$2 - shift - ;; - -*) - echo "$USAGE" - exit 1 - ;; - *) - break - ;; - esac - shift -done - -if [ $# != 2 ]; then - echo "$USAGE" - exit 1 -fi - -FILE=$1 -DIR=$2 - -cp $FILE $DIR -if [ -d $DIR ]; then - chmod $MODE $DIR/`basename $FILE` -else -# -# DIR is really the destination file -# - chmod $MODE $DIR -fi