From: Rocco Rutte Date: Mon, 22 Oct 2007 07:34:40 +0000 (+0200) Subject: Allow for $PYTHON environment variable specifying python binary to use X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=4cc1d7cf1739eb0a5a6b11cbbd8f8eee3cad4d2b;p=python%2Ffast-export.git Allow for $PYTHON environment variable specifying python binary to use Signed-off-by: Rocco Rutte --- diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 5d5674a..f9d1dd6 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -10,6 +10,7 @@ SFX_MARKS="marks" SFX_HEADS="heads" SFX_STATE="state" QUIET="" +PYTHON=${PYTHON:python} USAGE="[--quiet] [-r ] [-m ] [-s] [-A ]" LONG_USAGE="Import hg repository up to either tip or @@ -62,7 +63,7 @@ if [ ! -f "$GIT_DIR/$PFX-$SFX_MARKS" ] ; then touch "$GIT_DIR/$PFX-$SFX_MARKS" fi -GIT_DIR="$GIT_DIR" python "$ROOT/hg-fast-export.py" \ +GIT_DIR="$GIT_DIR" $PYTHON "$ROOT/hg-fast-export.py" \ --repo "$REPO" \ --marks "$GIT_DIR/$PFX-$SFX_MARKS" \ --heads "$GIT_DIR/$PFX-$SFX_HEADS" \ diff --git a/hg-reset.sh b/hg-reset.sh index 4204005..63d7fe1 100755 --- a/hg-reset.sh +++ b/hg-reset.sh @@ -10,6 +10,7 @@ SFX_MARKS="marks" SFX_HEADS="heads" SFX_STATE="state" QUIET="" +PYTHON=${PYTHON:python} USAGE="[-r ] -R " LONG_USAGE="Print SHA1s of latest changes per branch up to useful @@ -54,7 +55,7 @@ if [ ! -f "$GIT_DIR/$PFX-$SFX_MARKS" ] ; then touch "$GIT_DIR/$PFX-$SFX_MARKS" fi -GIT_DIR="$GIT_DIR" python "$ROOT/hg-reset.py" \ +GIT_DIR="$GIT_DIR" $PYTHON "$ROOT/hg-reset.py" \ --repo "$REPO" \ --marks "$GIT_DIR/$PFX-$SFX_MARKS" \ --heads "$GIT_DIR/$PFX-$SFX_HEADS" \