Fix detection of skeleton directory.

This commit is contained in:
Laurence Withers 2006-07-24 14:29:53 +01:00
parent 5af1a83262
commit 587c5f75ae
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# Sanity checks # Sanity checks
if [ $# -ne 5 ] if [ $# -ne 4 ]
then then
echo "Wrong number of arguments. Expecting:" echo "Wrong number of arguments. Expecting:"
echo " ./install.sh <dest_dir> @P@ @PC@ @HEADER_NAME@" echo " ./install.sh <dest_dir> @P@ @PC@ @HEADER_NAME@"
@ -24,12 +24,12 @@ then
fi fi
cd "$(dirname $0)" cd "$(dirname $0)"
TEMPLATE=$(dirname "$(pwd)")/skel TEMPLATE="$(pwd)/skel"
# Get arguments, include standard functions # Get arguments, include standard functions
source scripts/functions.sh || exit 1 source ${TEMPLATE}/scripts/functions.sh || exit 1
DEST_DIR="$1"; shift DEST_DIR="$1"; shift
P="$1"; shift P="$1"; shift
PC="$1"; shift PC="$1"; shift