From 4cc1d7cf1739eb0a5a6b11cbbd8f8eee3cad4d2b Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Mon, 22 Oct 2007 09:34:40 +0200 Subject: [PATCH] Allow for $PYTHON environment variable specifying python binary to use Signed-off-by: Rocco Rutte --- hg-fast-export.sh | 3 ++- hg-reset.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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" \ -- 2.11.4.GIT