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