2020-06-13 05:26:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-12-24 20:27:29 +00:00
|
|
|
tupConfigure() {
|
2021-11-14 02:54:33 +00:00
|
|
|
echo -n CONFIG_TUP_ARCH= >> tup.config
|
|
|
|
case "$system" in
|
|
|
|
"i686-*") echo i386 >> tup.config;;
|
|
|
|
"x86_64-*") echo x86_64 >> tup.config;;
|
|
|
|
"powerpc-*") echo powerpc >> tup.config;;
|
|
|
|
"powerpc64-*") echo powerpc64 >> tup.config;;
|
|
|
|
"ia64-*") echo ia64 >> tup.config;;
|
|
|
|
"alpha-*") echo alpha >> tup.config;;
|
|
|
|
"sparc-*") echo sparc >> tup.config;;
|
|
|
|
"aarch64-*") echo arm64 >> tup.config;;
|
|
|
|
"arm*") echo arm >> tup.config;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "${tupConfig-}" >> tup.config
|
|
|
|
|
|
|
|
tup init
|
2022-04-22 15:23:06 +00:00
|
|
|
tup generate --verbose tupBuild.sh
|
2023-12-24 20:27:29 +00:00
|
|
|
}
|
2021-11-14 02:54:33 +00:00
|
|
|
|
2023-12-24 20:27:29 +00:00
|
|
|
tupConfigurePhase() {
|
|
|
|
runHook preConfigure
|
|
|
|
tupConfigure
|
2021-11-14 02:54:33 +00:00
|
|
|
runHook postConfigure
|
2020-06-13 05:26:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUseTupConfigure-}" -a -z "${configurePhase-}" ]; then
|
|
|
|
configurePhase=tupConfigurePhase
|
|
|
|
fi
|
|
|
|
|
2023-12-24 20:27:29 +00:00
|
|
|
tupBuild() {
|
2021-11-14 02:54:33 +00:00
|
|
|
pushd .
|
2022-04-22 15:23:06 +00:00
|
|
|
./tupBuild.sh
|
2021-11-14 02:54:33 +00:00
|
|
|
popd
|
2023-12-24 20:27:29 +00:00
|
|
|
}
|
2020-06-13 05:26:20 +00:00
|
|
|
|
2023-12-24 20:27:29 +00:00
|
|
|
tupBuildPhase() {
|
|
|
|
runHook preBuild
|
|
|
|
tupBuild
|
2021-11-14 02:54:33 +00:00
|
|
|
runHook postBuild
|
2020-06-13 05:26:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUseTupBuild-}" -a -z "${buildPhase-}" ]; then
|
|
|
|
buildPhase=tupBuildPhase
|
|
|
|
fi
|