From 2708f14b162c6e5aa7aca966a24c139b3abc8cdd Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 6 Dec 2001 15:36:54 +0000 Subject: install.sh -> install-sh --- ChangeLog | 5 +++++ XMakefile | 6 +++--- install-sh | 34 ++++++++++++++++++++++++++++++++++ install.sh | 34 ---------------------------------- 4 files changed, 42 insertions(+), 37 deletions(-) create mode 100755 install-sh delete mode 100755 install.sh diff --git a/ChangeLog b/ChangeLog index 7633092..f6162f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-07 Fumitoshi UKAI + + * rename install.sh to install-sh + * XMakefile: s/install.sh/install-sh/ + 2001-12-07 Tsutomu Okada * [w3m-dev 02622] diff --git a/XMakefile b/XMakefile index d98d693..1d867f6 100644 --- a/XMakefile +++ b/XMakefile @@ -1,4 +1,4 @@ -# $Id: XMakefile,v 1.14 2001/12/04 16:17:07 ukai Exp $ +# $Id: XMakefile,v 1.15 2001/12/06 15:36:55 ukai Exp $ SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \ form.c map.c frame.c rc.c menu.c mailcap.c\ func.c cookie.c history.c backend.c $(KEYBIND_SRC) @@ -31,7 +31,7 @@ DEFS=$(INCLUDES) # -DDEBUG CFLAGS=$(OPTS) $(MYCFLAGS) $(DEFS) LIBS=-L. -lindep $(GCLIB) $(MATHLIB) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) LIBS2=-L. -lindep $(GCLIB) $(LOCAL_LIBRARIES) -INSTALL=sh install.sh +INSTALL=sh install-sh INSTALL_PROGRAM=$(INSTALL) -m 755 INSTALL_SCRIPT=$(INSTALL) -m 755 INSTALL_DATA=$(INSTALL) -m 644 @@ -117,7 +117,7 @@ install-scripts: all-scripts topdir=`pwd`; \ for dir in $(SCRIPTSUBDIRS); \ do \ - (cd $$dir; $(MAKE) PERL='$(PERL)' MKDIR='$(MKDIR)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)' HELP_DIR='$(HELP_DIR)' DESTDIR='$(DESTDIR)' INSTALL="sh $$topdir/install.sh" install); \ + (cd $$dir; $(MAKE) PERL='$(PERL)' MKDIR='$(MKDIR)' BIN_DIR='$(BIN_DIR)' LIB_DIR='$(LIB_DIR)' HELP_DIR='$(HELP_DIR)' DESTDIR='$(DESTDIR)' INSTALL="sh $$topdir/install-sh" install); \ done uninstall: diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..402ea72 --- /dev/null +++ b/install-sh @@ -0,0 +1,34 @@ +#! /bin/sh +# $Id: install-sh,v 1.1 2001/12/06 15:36:55 ukai Exp $ + +while : +do + case $1 in + -m) + mode=$2 + shift; shift + ;; + -*) + shift + ;; + *) + break + esac +done + +if [ $# -lt 2 ]; then + echo "usage: $0 [-m mode] file1 file2" + exit 1 +fi + +file=$1 +dest=$2 + +cp $file $dest +if [ -n "$mode" ]; then + if [ -d $dest ]; then + chmod $mode $dest/$file + else + chmod $mode $dest + fi +fi diff --git a/install.sh b/install.sh deleted file mode 100755 index 8b79012..0000000 --- a/install.sh +++ /dev/null @@ -1,34 +0,0 @@ -#! /bin/sh -# $Id: install.sh,v 1.2 2001/11/20 17:49:23 ukai Exp $ - -while : -do - case $1 in - -m) - mode=$2 - shift; shift - ;; - -*) - shift - ;; - *) - break - esac -done - -if [ $# -lt 2 ]; then - echo "usage: $0 [-m mode] file1 file2" - exit 1 -fi - -file=$1 -dest=$2 - -cp $file $dest -if [ -n "$mode" ]; then - if [ -d $dest ]; then - chmod $mode $dest/$file - else - chmod $mode $dest - fi -fi -- cgit v1.2.3