Support native packages (Closes #1)
This commit is contained in:
parent
305bd2e66d
commit
a94ee96561
|
|
@ -25,6 +25,8 @@ else
|
||||||
build-essential fakeroot git-buildpackage pristine-tar $BUILD_DEPENDS
|
build-essential fakeroot git-buildpackage pristine-tar $BUILD_DEPENDS
|
||||||
fi
|
fi
|
||||||
dpkg-checkbuilddeps
|
dpkg-checkbuilddeps
|
||||||
|
debversion=$(dpkg-parsechangelog -S Version)
|
||||||
|
if [[ $debversion = *-* ]]; then
|
||||||
echo "ensure pristine-tar branch exists and is current"
|
echo "ensure pristine-tar branch exists and is current"
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
git reset --hard
|
git reset --hard
|
||||||
|
|
@ -34,6 +36,9 @@ git checkout -B pristine-tar origin/pristine-tar || ( \
|
||||||
apt_get_auto_install gnupg2 libwww-perl;
|
apt_get_auto_install gnupg2 libwww-perl;
|
||||||
uscan --verbose --download-current-version --force-download --rename --skip-signature;
|
uscan --verbose --download-current-version --force-download --rename --skip-signature;
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
echo "building native package version $debversion"
|
||||||
|
fi
|
||||||
echo "make $CI_COMMIT_REF_NAME branch current for gbp"
|
echo "make $CI_COMMIT_REF_NAME branch current for gbp"
|
||||||
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
||||||
if [ -z "$CI_COMMIT_TAG" ]; then
|
if [ -z "$CI_COMMIT_TAG" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue