]> git.sur5r.net Git - openldap/commitdiff
Import install.sh -> install-sh rename
authorKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 18:26:20 +0000 (18:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 25 Jan 1999 18:26:20 +0000 (18:26 +0000)
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