Commit 1be5a38c authored by Oskar Skog's avatar Oskar Skog

mkenginecfg: fetch $(python) from the Makefile

parent e4d82fc0
......@@ -115,7 +115,7 @@ $(MAIN_STAGE) : $(MAIN_SRC) $(builddir)Makefile
$(ENGINECFG_STAGE) : $(srcdir)mkenginecfg $(builddir)Makefile.vars
@$(info) 'Making enginecfg: mostly counting processors'
@"$(srcdir)mkenginecfg" "$(srcdir)" "$(builddir)" "$(HISCORE_FILE)"
@"$(srcdir)mkenginecfg" "$(python)" "$(srcdir)" "$(builddir)" "$(HISCORE_FILE)"
$(builddir)module-symlinks : $(builddir)Makefile.vars $(srcdir)mk-symlinks
......
#!/bin/sh
# ./mkenginecfg srcdir builddir hiscorefile
if [ $# -ne 4 ]; then
cat >&2 <<__EOF__
# ./mkenginecfg python_interpreter srcdir builddir hiscorefile
# This shell script is a wrapper around a Python script that will be spit
# out.
__EOF__
exit 1
fi
srcdir=$1
builddir=$2
hiscorefile=$3
python=$1
srcdir=$2
builddir=$3
hiscorefile=$4
userfile="${builddir}enginecfg.user"
fallbackfile="${srcdir}enginecfg.fallback"
......@@ -84,6 +90,6 @@ done
oldpwd=`pwd`
cd "$srcdir"
python "$pyfile" "$ncpus" "$hiscorefile" > "$outfile" \
$python "$pyfile" "$ncpus" "$hiscorefile" > "$outfile" \
|| cp "$fallbackfile" "$outfile"
cd "$oldpwd"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment