Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 47 lines 1.0 kB view raw
1#!/bin/sh 2 3tupConfigure() { 4 echo -n CONFIG_TUP_ARCH= >> tup.config 5 case "$system" in 6 "i686-*") echo i386 >> tup.config;; 7 "x86_64-*") echo x86_64 >> tup.config;; 8 "powerpc-*") echo powerpc >> tup.config;; 9 "powerpc64-*") echo powerpc64 >> tup.config;; 10 "ia64-*") echo ia64 >> tup.config;; 11 "alpha-*") echo alpha >> tup.config;; 12 "sparc-*") echo sparc >> tup.config;; 13 "aarch64-*") echo arm64 >> tup.config;; 14 "arm*") echo arm >> tup.config;; 15 esac 16 17 echo "${tupConfig-}" >> tup.config 18 19 tup init 20 tup generate --verbose tupBuild.sh 21} 22 23tupConfigurePhase() { 24 runHook preConfigure 25 tupConfigure 26 runHook postConfigure 27} 28 29if [ -z "${dontUseTupConfigure-}" -a -z "${configurePhase-}" ]; then 30 configurePhase=tupConfigurePhase 31fi 32 33tupBuild() { 34 pushd . 35 ./tupBuild.sh 36 popd 37} 38 39tupBuildPhase() { 40 runHook preBuild 41 tupBuild 42 runHook postBuild 43} 44 45if [ -z "${dontUseTupBuild-}" -a -z "${buildPhase-}" ]; then 46 buildPhase=tupBuildPhase 47fi