Allow for $PYTHON environment variable specifying python binary to use

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
Rocco Rutte
2007-10-22 09:34:40 +02:00
parent e1aa392c39
commit 4cc1d7cf17
2 changed files with 4 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ SFX_MARKS="marks"
SFX_HEADS="heads"
SFX_STATE="state"
QUIET=""
PYTHON=${PYTHON:python}
USAGE="[--quiet] [-r <repo>] [-m <max>] [-s] [-A <file>]"
LONG_USAGE="Import hg repository <repo> up to either tip or <max>
@@ -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" \

View File

@@ -10,6 +10,7 @@ SFX_MARKS="marks"
SFX_HEADS="heads"
SFX_STATE="state"
QUIET=""
PYTHON=${PYTHON:python}
USAGE="[-r <repo>] -R <rev>"
LONG_USAGE="Print SHA1s of latest changes per branch up to <rev> 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" \