]> git.sur5r.net Git - openldap/commitdiff
Move install.sh to install-sh. install.sh name may cause problems
authorKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 02:30:58 +0000 (02:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 02:30:58 +0000 (02:30 +0000)
with some 'make' programs that have a rule to create 'install' from
it there is no 'Makefile'.  (per autoconf 2.12).

build/install-sh [new file with mode: 0755]
build/install.sh [deleted file]

diff --git a/build/install-sh b/build/install-sh
new file mode 100755 (executable)
index 0000000..b9ac07f
--- /dev/null
@@ -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 (executable)
index b9ac07f..0000000
+++ /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