From: Thibault Godouet Date: Sun, 3 Jun 2001 10:59:35 +0000 (+0000) Subject: bug corrected : boot-install should now work with install.sh even if user X-Git-Tag: ver2_9_4~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69fec2d84eaae1fb51e2c8f7bb1c0efc83b38bad;p=thirdparty%2Ffcron.git bug corrected : boot-install should now work with install.sh even if user compiles from a dir different from source dir. --- diff --git a/script/boot-install b/script/boot-install index d95f43e..26362b6 100755 --- a/script/boot-install +++ b/script/boot-install @@ -2,7 +2,7 @@ # Install fcron under SysV system. # -# $Id: boot-install,v 1.33 2001-05-05 19:09:27 thib Exp $ +# $Id: boot-install,v 1.34 2001-06-03 10:59:35 thib Exp $ # take 6 arguments : the name of the BSD-like install program (with "-o" and the correct username) # the DESTSBIN directory @@ -23,7 +23,12 @@ if test $3 -eq 1; then exit fi -INSPROG=$1 +# The program we use to install a file. This may be the script install.sh. +if echo "$1" | grep 'install.sh$'; then + INSPROG=$SRCDIR/$1 +else + INSPROG=$1 +fi DESTBIN=$2 DEBUG=$3 #DEBUG=1