From 587c5f75ae8b6d5bc0a7cc04eed4ef3ce5d4d548 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Mon, 24 Jul 2006 14:29:53 +0100 Subject: [PATCH] Fix detection of skeleton directory. --- install-lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-lib.sh b/install-lib.sh index 032edf6..7297c6f 100755 --- a/install-lib.sh +++ b/install-lib.sh @@ -12,7 +12,7 @@ # Sanity checks -if [ $# -ne 5 ] +if [ $# -ne 4 ] then echo "Wrong number of arguments. Expecting:" echo " ./install.sh @P@ @PC@ @HEADER_NAME@" @@ -24,12 +24,12 @@ then fi cd "$(dirname $0)" -TEMPLATE=$(dirname "$(pwd)")/skel +TEMPLATE="$(pwd)/skel" # Get arguments, include standard functions -source scripts/functions.sh || exit 1 +source ${TEMPLATE}/scripts/functions.sh || exit 1 DEST_DIR="$1"; shift P="$1"; shift PC="$1"; shift