Blame build.usage

Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
usage: ./build.sh [-c] [-nd] [-r ALL|level.name.build[:step]] [-h] [-t]
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
        -c                     Clean $PREFIX before processing build scripts.
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
        -i level.name.build    Insert link to pkg.build for the specified build script.
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
                               All consecutive scripts with higher build levels will
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
                               be renamed automatically.
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
        -nd                    Don't rm(1) and re-download tarballs when not required.
Lucio Andrés Illanes Albornoz (arab, vxp) d824e1
        -h                     Show this screen.
Lucio Andrés Illanes Albornoz (arab, vxp) d824e1
        -pt                    Enable pedantic mode. In addition to the warnings emitted
Lucio Andrés Illanes Albornoz (arab, vxp) d824e1
                               whenever a potentially dangerous operation is invoked by
Lucio Andrés Illanes Albornoz (arab, vxp) d824e1
                               the build scripts, manual confirmation will be required.
Lucio Andrés Illanes Albornoz (arab, vxp) d824e1
                               This currently only includes rm_if_exists().
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
        -r ALL|level.name.build[:step]
Lucio Andrés Illanes Albornoz (arab, vxp) 3243be
                               Restart all or the specified build script(s) completely
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
                               or at the optionally specified build step. Currently defined
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
                               build steps are: fetch extract build_dir patch configure clean
Lucio Andrés Illanes Albornoz (arab, vxp) ad1a1c
                               build install configure1 configure2 build1 build2 install1 install2.
Lucio Andrés Illanes Albornoz (arab, vxp) afcefa
        -t[.gz|.bz2|.xz]       Produce binary distribution and source tarballs containing $PREFIX
Lucio Andrés Illanes Albornoz (arab, vxp) afcefa
                               sans $WORKDIR and $PREFIX/src/midipix_build and $WORKDIR sans top-
Lucio Andrés Illanes Albornoz (arab, vxp) afcefa
                               level regular files at the end of a build with zero failures. The
Lucio Andrés Illanes Albornoz (arab, vxp) afcefa
                               tarballs will be compressed with either gzip, bzip2, or xz and signed
Lucio Andrés Illanes Albornoz (arab, vxp) afcefa
                               with GPG; the default compression is xz.
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
        -x                     Set the xtrace sh(1)ell option for debugging purposes.
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
        -X                     Set the xtrace sh(1)ell option and compile a tarball containing
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
                               build.log and $PKG_SUBDIR. Use this option if something goes
Lucio Andrés Illanes Albornoz (arab, vxp) b94746
                               wrong and provide an URL to the tarball in <irc://irc.freenode.net/midipix>.
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
Lucio Andrés Illanes Albornoz (arab, vxp) 090fd4
        Packages that are built by pkg.build will apply local patches in $WORKDIR
Lucio Andrés Illanes Albornoz (arab, vxp) 090fd4
        named ${PKG_SUBDIR}.local.patch.
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
Lucio Andrés Illanes Albornoz (arab, vxp) 090fd4
        Examples:
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        ./build.sh -r ALL
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        Forcibly restart the entire build.
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        ./build.sh -r 301.coreutils.build
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        Completely restart the coreutils build.
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        ./build.sh -r 301.coreutils.build:configure,build,install
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
        Restart the configure, build, and install steps of the coreutils build script.
Lucio Andrés Illanes Albornoz (arab, vxp) 094032
Lucio Andrés Illanes Albornoz (arab, vxp) 7adf06
        ./build.sh -r 205.psxscl.build GITROOT_HEAD=... PKG_PSXSCL_CFLAGS_CONFIGURE_EXTRA=-DPSX_INTERNAL_STRACE
Lucio Andrés Illanes Albornoz (arab, vxp) 090fd4
        Build psxscl from the internal repository with strace enabled.
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
Lucio Andrés Illanes Albornoz (arab, vxp) 0724e5
        ./build.sh -c -r ALL GITROOT_HEAD=...
Lucio Andrés Illanes Albornoz (arab, vxp) 0724e5
        Clean $PREFIX and forcibly rebuild everything.
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
This script has been tested on the following platforms:
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
Arch Linux 2016.02.01 (x86_64)
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
Debian GNU/Linux v8.5 (stable) (jessie) (x86_64)
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
Cygwin64 CYGWIN_NT-6.3 (x86_64)
Lucio Andrés Illanes Albornoz (arab, vxp) d751db
openSUSE 20150612 (Tumbleweed) (x86_64)