This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from TApplencourt/master
Ninja build
- Loading branch information
Showing
61 changed files
with
767 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -x | ||
# This script should be included | ||
|
||
BUILD=_build/${TARGET} | ||
rm -rf -- ${BUILD} | ||
mkdir ${BUILD} || exit 1 | ||
tar -zxf Downloads/${TARGET}.tar.gz --strip-components=1 --directory=${BUILD} || exit 1 | ||
_install || exit 1 | ||
rm -rf -- ${BUILD} _build/${TARGET}.log | ||
exit 0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -x | ||
TARGET=curl | ||
|
||
function _install() | ||
{ | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
cd ${BUILD} || return 1 | ||
mv curl.ermine ${QP_ROOT}/bin/curl || return 1 | ||
} | ||
|
||
BUILD=_build/${TARGET} | ||
rm -rf -- ${BUILD} | ||
mkdir ${BUILD} || exit 1 | ||
tar -xvjf Downloads/${TARGET}.tar.bz2 --strip-components=1 --directory=${BUILD} || exit 1 | ||
_install || exit 1 | ||
rm -rf -- ${BUILD} _build/${TARGET}.log | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=docopt | ||
|
||
function _install() | ||
{ | ||
cp -R ${BUILD} . || exit 1 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=emsl | ||
|
||
function _install() | ||
{ | ||
cp -R ${BUILD} . || exit 1 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=ezfio | ||
|
||
function _install() | ||
{ | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
rm -rf ${QP_ROOT}/EZFIO | ||
cd ${BUILD}/config || return 1 | ||
cd - | ||
mv ${BUILD} ${QP_ROOT}/install/EZFIO || return 1 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=irpf90 | ||
function _install() | ||
{ | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
|
||
make -C ${BUILD} || return 1 | ||
rm -rf -- ./irpf90 | ||
mv ${BUILD} . || return 1 | ||
[[ -x ./irpf90/bin/irpf90 ]] || return 1 | ||
[[ -x ./irpf90/bin/irpman ]] || return 1 | ||
rm -rf -- ../bin/irpf90 ../bin/irpman | ||
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpf90 $@' > ../bin/irpf90 || return 1 | ||
echo 'exec ${QP_ROOT}/install/irpf90/bin/irpman $@' > ../bin/irpman || return 1 | ||
chmod +x ../bin/irpf90 ../bin/irpman || return 1 | ||
return 0 | ||
} | ||
|
||
source scripts/build.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=m4 | ||
|
||
function _install() | ||
{ | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
cd ${BUILD} | ||
./configure && make || exit 1 | ||
ln -sf ${PWD}/src/m4 ${QP_ROOT}/bin || exit 1 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=ninja | ||
|
||
function _install() | ||
{ | ||
cd ${BUILD} || return 1 | ||
./configure.py --bootstrap || return 1 | ||
cd - | ||
mv ${BUILD}/ninja ../bin/ || return 1 | ||
return 0 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
|
||
# Normal installation | ||
PACKAGES="core cryptokit ocamlfind sexplib" | ||
|
||
declare -i i | ||
i=$(gcc -dumpversion | cut -d '.' -f 2) | ||
if [[ i -lt 6 ]] | ||
then | ||
echo "GCC version $(gcc -dumpversion) too old. GCC >= 4.6 required." | ||
exit 1 | ||
fi | ||
|
||
if [[ -d ${HOME}/.opam ]] | ||
then | ||
source ${HOME}/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true | ||
fi | ||
|
||
cd Downloads || exit 1 | ||
chmod +x ocaml.sh || exit 1 | ||
|
||
echo N | ./ocaml.sh ${QP_ROOT}/bin/ || exit 1 | ||
|
||
${QP_ROOT}/bin/opam config setup -a -q || exit 1 | ||
|
||
export LD_LIBRARY_PATH=${QP_ROOT}/lib:${LD_LIBRARY_PATH} | ||
export LIBRARY_PATH=${QP_ROOT}/lib:${LIBRARY_PATH} | ||
export C_INCLUDE_PATH=${QP_ROOT}/lib:${C_INCLUDE_PATH} | ||
source ${HOME}/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true | ||
|
||
${QP_ROOT}/bin/opam install ${PACKAGES} -y -q || exit 1 | ||
rm -f ../_build/ocaml.log | ||
exit 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=patch | ||
|
||
function _install() | ||
{ | ||
mkdir ${TARGET} | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
cd ${BUILD} | ||
./configure --prefix=${QP_ROOT}/install/${TARGET} && make || exit 1 | ||
make install || exit 1 | ||
cd - | ||
cp ${TARGET}/bin/${TARGET} ${QP_ROOT}/bin || exit 1 | ||
rm -R -- ${TARGET} || exit 1 | ||
} | ||
|
||
source scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=resultsFile | ||
|
||
function _install() | ||
{ | ||
cp -R ${BUILD} . || exit 1 | ||
} | ||
|
||
source scripts/build.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -x | ||
|
||
TARGET=zlib | ||
|
||
function _install() | ||
{ | ||
rm -rf -- ${TARGET} | ||
mkdir ${TARGET} || exit 1 | ||
cd .. | ||
QP_ROOT=$PWD | ||
cd - | ||
cd ${BUILD} | ||
./configure && make || exit 1 | ||
make install prefix=$QP_ROOT/install/${TARGET} || exit 1 | ||
ln -s -f $QP_ROOT/install/${TARGET}/lib/libz.so $QP_ROOT/lib || exit 1 | ||
ln -s -f $QP_ROOT/install/${TARGET}/lib/libz.a $QP_ROOT/lib || exit 1 | ||
} | ||
|
||
source scripts/build.sh |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.