Revert "Merge branch 'noctis/extra-debs-env' into 'master'"
This reverts merge request !383
Blair Noctis
1 year, 8 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. 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
|
|
106 |
been built by the previous step.
|
111 | 107 |
|
112 | 108 |
After everything is built successfully, you can ``dput`` all of them and then
|
113 | 109 |
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.
|
20 | 18 |
set -e
|
21 | 19 |
|
22 | 20 |
SCRIPTDIR="$(dirname $(readlink -f "$0"))"
|
|
100 | 98 |
fi
|
101 | 99 |
fi
|
102 | 100 |
|
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
|
|
101 |
EXTRA_DEBS=( "$@" )
|
|
102 |
if [ -n "$*" -a -z "$IGNORE_MISSING_BUILD_DEPS" ]; then
|
109 | 103 |
IGNORE_MISSING_BUILD_DEPS=1
|
110 | 104 |
echo >&2 "Given non-empty extra debs; defaulting IGNORE_MISSING_BUILD_DEPS=1"
|
111 | 105 |
fi
|