build.sh: add EXTRA_DEBS env var
Blair Noctis
1 year, 7 months ago
103 | 103 |
|
104 | 104 |
The extra arguments after ``./build.sh B <args>`` is extra deb files to pass to
|
105 | 105 |
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
|
107 | 111 |
|
108 | 112 |
After everything is built successfully, you can ``dput`` all of them and then
|
109 | 113 |
push all the ``pending-*`` branches as normal.
|
15 | 15 |
# Build using another schroot than debcargo-unstable-amd64-sbuild
|
16 | 16 |
# SBUILD_OPTS=
|
17 | 17 |
# will pass to sbuild; for example SBUILD_OPTS=--arch=i386
|
|
18 |
# EXTRA_DEBS
|
|
19 |
# Include extra dependency debs, e.g. EXTRA_DEBS=librust*.deb.
|
18 | 20 |
set -e
|
19 | 21 |
|
20 | 22 |
SCRIPTDIR="$(dirname $(readlink -f "$0"))"
|
|
98 | 100 |
fi
|
99 | 101 |
fi
|
100 | 102 |
|
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
|
103 | 109 |
IGNORE_MISSING_BUILD_DEPS=1
|
104 | 110 |
echo >&2 "Given non-empty extra debs; defaulting IGNORE_MISSING_BUILD_DEPS=1"
|
105 | 111 |
fi
|