File: build_cf_packages_native.sh

package info (click to toggle)
android-cuttlefish 1.0.1-0~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,192 kB
  • sloc: cpp: 39,149; sh: 2,523; javascript: 242; exp: 152; python: 125; makefile: 88
file content (37 lines) | stat: -rwxr-xr-x 1,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

CUTTLEFISH_GIT_URL_DEFAULT="https://github.com/google/android-cuttlefish.git"
CUTTLEFISH_GIT_BRANCH_DEFAULT="stable"

if [ x"$CUTTLEFISH_GIT_URL" = x ]; then
    CUTTLEFISH_GIT_URL="$CUTTLEFISH_GIT_URL_DEFAULT"
fi

if [ x"$CUTTLEFISH_GIT_BRANCH" = x ]; then
    CUTTLEFISH_GIT_BRANCH="$CUTTLEFISH_GIT_BRANCH_DEFAULT"
fi

git clone --branch="${CUTTLEFISH_GIT_BRANCH}" "${CUTTLEFISH_GIT_URL}" android-cuttlefish
cd android-cuttlefish

if [ x"$DEBEMAIL" = x ]; then
    export DEBEMAIL="glt-noreply@linaro.org"
fi

if [ x"$DEBFULLNAME" = x ]; then
    export DEBFULLNAME="Linaro GLT Deb"
fi

if [ x"${CI_PIPELINE_ID}" = x ]; then
    export CI_PIPELINE_ID=1
fi

for subdir in base frontend; do
    cd ${subdir}
    UPSTREAM_VERSION=$(dpkg-parsechangelog -S Version)
    dch -v "${UPSTREAM_VERSION}"."linaro${CI_PIPELINE_ID}" "Linaro build"
    dch -r "Linaro build"
    mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
    dpkg-buildpackage -d -uc -us
    cd -
done