Commits

anatoly techtonik committed 8c8d859

convert.sh: run from any directory

Comments (0)

Files changed (1)

 
 # Run the conversion
 
-REPO_PATH=file:///`pwd`/../scons-mirror
-DEST_DIR=../scons-hg
+CURDIR="$( cd "$( dirname "$0" )" && pwd )"
+PARENT="$( cd "$( dirname "$0" )/.." && pwd )"
+REPO_PATH=file://$PARENT/scons-mirror
+DEST_DIR=$PARENT/scons-hg
 
 if [ -x $DEST_DIR ]
 then
 
 mkdir $DEST_DIR
 
-hg convert --datesort --authormap=authors.txt --splicemap=splicemap.txt $REPO_PATH $DEST_DIR
+hg convert --datesort --authormap=$CURDIR/authors.txt --splicemap=$CURDIR/splicemap.txt $REPO_PATH $DEST_DIR
 
 
 # uncomment the following lines to close the testing branch