mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-09 07:33:53 +01:00
26 lines
552 B
Bash
26 lines
552 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# Installs m4 for ocaml
|
||
|
# Thu Oct 23 22:02:08 CEST 2014
|
||
|
|
||
|
BASE="ninja"
|
||
|
URL="https://github.com/martine/ninja/archive/master.tar.gz"
|
||
|
|
||
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
||
|
then
|
||
|
echo "The QPACKAGE_ROOT environment variable is not set."
|
||
|
echo "Please reload the quantum_package.rc file."
|
||
|
exit -1
|
||
|
fi
|
||
|
|
||
|
cd ${QPACKAGE_ROOT}
|
||
|
|
||
|
${QPACKAGE_ROOT}/scripts/install/fetch_from_web.py ${URL} ${QPACKAGE_ROOT}/${BASE}.tar.gz
|
||
|
tar -zxf ${BASE}.tar.gz && rm ${BASE}.tar.gz ||exit 1
|
||
|
rm -rf ${BASE}
|
||
|
mv ${BASE}-master ${BASE}
|
||
|
cd ${BASE}
|
||
|
./configure.py --bootstrap
|
||
|
|
||
|
|