Permalink
Browse files

tid18365 relocate template dir outside of builddir

  • Loading branch information...
1 parent 222a3a6 commit 735fe4e8a73b5968f6dcd32cab81f9484753826a @esproul esproul committed Mar 26, 2012
View
5 new.sh
@@ -39,7 +39,8 @@ if [[ -z $1 ]]; then
exit 254
fi
-BUILDDIR=`dirname $0`/build
+SCRIPTDIR=`dirname $0`
+BUILDDIR=$SCRIPTDIR/build
TYPESAVAIL="basic perl python"
# Default type if not specified
TYPE="basic"
@@ -77,6 +78,6 @@ fi
echo "Creating new $TYPE build script under $BUILDDIR/$NAME"
mkdir $BUILDDIR/$NAME
-cp $BUILDDIR/template/${TYPE}-template.sh $BUILDDIR/$NAME/build.sh
+cp $SCRIPTDIR/template/${TYPE}-template.sh $BUILDDIR/$NAME/build.sh
chmod +x $BUILDDIR/$NAME/build.sh
mkdir $BUILDDIR/$NAME/patches
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 735fe4e

Please sign in to comment.