diff options
author | ng0 <ng0@n0.is> | 2019-10-04 15:57:51 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-04 15:57:51 +0000 |
commit | 5059125bfe5a60aae4e6da79d61d086b4e2e2fce (patch) | |
tree | 81c3546d7f42e3b14fa4202cc597c984f5ca5d60 /configure | |
parent | 978e67775574bf2720007d71faafff047d0c9cb3 (diff) | |
download | build-common-5059125bfe5a60aae4e6da79d61d086b4e2e2fce.tar.gz build-common-5059125bfe5a60aae4e6da79d61d086b4e2e2fce.tar.bz2 build-common-5059125bfe5a60aae4e6da79d61d086b4e2e2fce.zip |
move most of the shell functionality to the python script.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 1 insertions, 43 deletions
@@ -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 $@ |