install-all (1670B)
1 #!/bin/sh 2 set -x 3 4 : ${slashpackage:=${HOME}/local} 5 : ${jobs:=$(grep '^processor\t*:' /proc/cpuinfo | wc -l)} 6 7 if test 1 -gt "$jobs"; then 8 jobs=1 9 fi 10 11 install_skalibs() { 12 git checkout --force || exit $? 13 git clean -fx || exit $? 14 ./configure --disable-shared --enable-static --enable-slashpackage="$slashpackage" || exit $? 15 make -j${jobs} || exit $? 16 make install || exit $? 17 make -L update || exit $? 18 make -L global-links || exit $? 19 } 20 21 install_s6() { 22 git checkout --force || exit $? 23 git clean -fx || exit $? 24 #patch -up 1 -i ../s6_clone_newpid.patch || exit $? 25 patch -up 1 -i ../s6_clone3_newpid.patch || exit $? 26 ./configure --disable-shared --enable-static --enable-allstatic --enable-static-libc --enable-slashpackage="$slashpackage" || exit $? 27 make -j${jobs} CFLAGS=-DWANT_CLONE_NEWPID || exit $? 28 make install || exit $? 29 make -L update || exit $? 30 make -L global-links || exit $? 31 } 32 33 install_generic() { 34 git checkout --force || exit $? 35 git clean -fx || exit $? 36 ./configure --disable-shared --enable-static --enable-allstatic --enable-static-libc --enable-slashpackage="$slashpackage" || exit $? 37 make -j${jobs} || exit $? 38 make install || exit $? 39 make -L update || exit $? 40 make -L global-links || exit $? 41 } 42 43 (cd skalibs && install_skalibs) || exit $? 44 (cd execline && install_generic) || exit $? 45 (cd s6 && install_s6) || exit $? 46 (cd s6-rc && install_generic) || exit $? 47 (cd s6-portable-utils && install_generic) || exit $? 48 (cd s6-linux-utils && install_generic) || exit $? 49 (cd s6-linux-init && install_generic) || exit $? 50 (cd mdevd && install_generic) || exit $? 51 (cd s6-dns && install_generic) || exit $? 52 (cd s6-networking && install_generic) || exit $?