From 5059125bfe5a60aae4e6da79d61d086b4e2e2fce Mon Sep 17 00:00:00 2001 From: ng0 Date: Fri, 4 Oct 2019 15:57:51 +0000 Subject: move most of the shell functionality to the python script. --- configure | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 8f456dd..933d474 100755 --- a/configure +++ b/configure @@ -74,52 +74,10 @@ fi PYTHON=$($python -c 'import sys; print(sys.executable)') #echo $PYTHON -if ! existence node; then - echo 'Error: node executable not found.' - echo 'If you are using Linux, Ubuntu or Debian, try installing the' - echo 'node-legacy package or symlink node to nodejs.' -else - node_version=$(node --version) - #echo "Using node ${node_version}" - if ! node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'; then - echo 'Your node version is too old, use Node 4.x or newer' - exit 1 - fi -fi - -if existence yarn; then - if yarn help 2>&1 | grep "No such file or directory"; then - echo "ERROR: wrong yarn binary installed, please remove the" - echo "ERROR: conflicting binary before continuing." - if existence cmdtest; then - echo "WARNING: cmdtest is installed, this can lead" - echo "WARNING: to know issues with yarn." - fi - exit 1 - fi - myyarn="yarn" -elif existence yarnpkg; then - myyarn="yarnpkg" -else - echo 'ERROR: yarn missing. See https://yarnpkg.com/en/docs/install' - exit 1 -fi - -# for the weird systems and sandboxes, only as a anotice. -# make will fail anyway. -if ! existence find; then - echo "INFO: find(1) is missing" -fi -if ! existence xargs; then - echo "INFO: xargs(1) is missing" -fi -if ! existence msgmerge; then - echo "INFO: msgmerge(1) is missing" -fi # Call configure.py, assuming all went well. # $1 is read by configure.py as the prefix. # If $1 is empty, the python script checks the # environment for PREFIX. We might need more # variables and switches, such as DESTDIR. -$PYTHON ./configure.py --yarn=$myyarn $@ +$PYTHON ./configure.py $@ -- cgit v1.2.3