CLEANUP: Rename install script to install.sh
authorRemco Rijnders <remco@webconquest.com>
Tue, 8 Sep 2015 14:08:32 +0000 (16:08 +0200)
committerRemco Rijnders <remco@webconquest.com>
Wed, 9 Sep 2015 09:33:41 +0000 (11:33 +0200)
bsdinstall [deleted file]
install.sh [new file with mode: 0755]
src/Makefile

diff --git a/bsdinstall b/bsdinstall
deleted file mode 100755 (executable)
index 12daca1..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-#! /bin/sh
-
-#      @(#)install.sh  4.5     (Berkeley)      10/12/83
-#
-cmd=/bin/mv
-strip=""
-chmod="/bin/chmod 755"
-chown="chown -f root"
-chgrp="/bin/chgrp -f bin"
-while true ; do
-       case $1 in
-               -s )    strip="strip"
-                       shift
-                       ;;
-               -c )    cmd="/bin/cp"
-                       shift
-                       ;;
-               -m )    chmod="/bin/chmod $2"
-                       shift
-                       shift
-                       ;;
-               -o )    chown="/etc/chown -f $2"
-                       shift
-                       shift
-                       ;;
-               -g )    chgrp="/bin/chgrp -f $2"
-                       shift
-                       shift
-                       ;;
-               -d )    cmd="/bin/mkdir"
-                       shift
-                       ;;
-               * )     break
-                       ;;
-       esac
-done
-
-if [ ! ${2-""} ]
-then   echo "install: no destination specified"
-       exit 1
-fi
-if [ ${3-""} ]
-then   echo "install: too many files specified -> $*"
-       exit 1
-fi
-if [ $1 = $2 -o $2 = . ]
-then   echo "install: can't move $1 onto itself"
-       exit 1
-fi
-case $cmd in
-/bin/mkdir )
-       file=$2/$1
-       ;;
-* )
-       if [ '!' -f $1 ]
-       then    echo "install: can't open $1"
-               exit 1
-       fi
-       if [ -d $2 ]
-       then    file=$2/$1
-       else    file=$2
-       fi
-       /bin/rm -f $file
-       ;;
-esac
-
-case $cmd in
-/bin/mkdir )
-       if [ ! -d "$file" ]
-       then    $cmd $file
-       fi
-       ;;
-* )
-       $cmd $1 $file
-       if [ $strip ]
-       then    $strip $file
-       fi
-       ;;
-esac
-
-$chown $file
-$chgrp $file
-$chmod $file
diff --git a/install.sh b/install.sh
new file mode 100755 (executable)
index 0000000..12daca1
--- /dev/null
@@ -0,0 +1,83 @@
+#! /bin/sh
+
+#      @(#)install.sh  4.5     (Berkeley)      10/12/83
+#
+cmd=/bin/mv
+strip=""
+chmod="/bin/chmod 755"
+chown="chown -f root"
+chgrp="/bin/chgrp -f bin"
+while true ; do
+       case $1 in
+               -s )    strip="strip"
+                       shift
+                       ;;
+               -c )    cmd="/bin/cp"
+                       shift
+                       ;;
+               -m )    chmod="/bin/chmod $2"
+                       shift
+                       shift
+                       ;;
+               -o )    chown="/etc/chown -f $2"
+                       shift
+                       shift
+                       ;;
+               -g )    chgrp="/bin/chgrp -f $2"
+                       shift
+                       shift
+                       ;;
+               -d )    cmd="/bin/mkdir"
+                       shift
+                       ;;
+               * )     break
+                       ;;
+       esac
+done
+
+if [ ! ${2-""} ]
+then   echo "install: no destination specified"
+       exit 1
+fi
+if [ ${3-""} ]
+then   echo "install: too many files specified -> $*"
+       exit 1
+fi
+if [ $1 = $2 -o $2 = . ]
+then   echo "install: can't move $1 onto itself"
+       exit 1
+fi
+case $cmd in
+/bin/mkdir )
+       file=$2/$1
+       ;;
+* )
+       if [ '!' -f $1 ]
+       then    echo "install: can't open $1"
+               exit 1
+       fi
+       if [ -d $2 ]
+       then    file=$2/$1
+       else    file=$2
+       fi
+       /bin/rm -f $file
+       ;;
+esac
+
+case $cmd in
+/bin/mkdir )
+       if [ ! -d "$file" ]
+       then    $cmd $file
+       fi
+       ;;
+* )
+       $cmd $1 $file
+       if [ $strip ]
+       then    $strip $file
+       fi
+       ;;
+esac
+
+$chown $file
+$chgrp $file
+$chmod $file
index 29f0eee8964c131ee147a500299282a7ab9850f5..78469e6012e7905d40d1aae3124f8353a8bb66c2 100644 (file)
@@ -36,7 +36,7 @@ IRCDMODE=0700
 IRCDOWN=irc
 IRCDGRP=irc
 MPATH=../ircd.motd
-INSTALL=../bsdinstall
+INSTALL=../install.sh
 
 MV=mv
 GREP=grep