Codebase list rust-stfu8 / 3ceff79
build.sh: add EXTRA_DEBS env var Blair Noctis 1 year, 7 months ago
2 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
103103
104104 The extra arguments after ``./build.sh B <args>`` is extra deb files to pass to
105105 sbuild to use as dependencies. In this case, ``librust-A*.deb`` should have
106 been built by the previous step.
106 been built by the previous step. Alternatively, use the environment variable
107 ``EXTRA_DEBS``, like so: ::
108
109 $ EXTRA_DEBS=librust-A*.deb ./build.sh B
110 $ EXTRA_DEBS=librust-A.deb,librust-B.deb ./build.sh C
107111
108112 After everything is built successfully, you can ``dput`` all of them and then
109113 push all the ``pending-*`` branches as normal.
1515 # Build using another schroot than debcargo-unstable-amd64-sbuild
1616 # SBUILD_OPTS=
1717 # will pass to sbuild; for example SBUILD_OPTS=--arch=i386
18 # EXTRA_DEBS
19 # Include extra dependency debs, e.g. EXTRA_DEBS=librust*.deb.
1820 set -e
1921
2022 SCRIPTDIR="$(dirname $(readlink -f "$0"))"
98100 fi
99101 fi
100102
101 EXTRA_DEBS=( "$@" )
102 if [ -n "$*" -a -z "$IGNORE_MISSING_BUILD_DEPS" ]; then
103 # allow tab, comma, space as separators
104 IFS=' , ' read -r -a EXTRA_DEBS <<< "$EXTRA_DEBS"
105 if [ ${#EXTRA_DEBS[@]} -eq 0 ]; then
106 EXTRA_DEBS=( "$@" )
107 fi
108 if [ ${#EXTRA_DEBS[@]} -ne 0 ]; then
103109 IGNORE_MISSING_BUILD_DEPS=1
104110 echo >&2 "Given non-empty extra debs; defaulting IGNORE_MISSING_BUILD_DEPS=1"
105111 fi