Support native packages (Closes #1)

This commit is contained in:
Federico Ceratto 2018-08-23 22:06:57 +01:00 committed by Hans-Christoph Steiner
parent 305bd2e66d
commit a94ee96561
1 changed files with 14 additions and 9 deletions

View File

@ -25,15 +25,20 @@ 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
echo "ensure pristine-tar branch exists and is current" debversion=$(dpkg-parsechangelog -S Version)
git clean -fdx if [[ $debversion = *-* ]]; then
git reset --hard echo "ensure pristine-tar branch exists and is current"
git fetch --all git clean -fdx
git checkout -B pristine-tar origin/pristine-tar || ( \ git reset --hard
git fetch --all
git checkout -B pristine-tar origin/pristine-tar || ( \
echo "no pristine-tar branch, trying uscan"; echo "no pristine-tar branch, trying uscan";
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