mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
debian: Fix script
This commit is contained in:
parent
6470d04be7
commit
34a28f14e2
7
debian/extra/prepare-commit-package.sh
vendored
7
debian/extra/prepare-commit-package.sh
vendored
|
@ -33,11 +33,16 @@ set -e
|
||||||
UPSTREAM_VER=$(git describe --exclude "v0*" "$COMMIT_TO_PACKAGE" | sed -E -e 's/^v//' -e 's/-([0-9]+)-g([0-9a-f])/+git\1.\2/')
|
UPSTREAM_VER=$(git describe --exclude "v0*" "$COMMIT_TO_PACKAGE" | sed -E -e 's/^v//' -e 's/-([0-9]+)-g([0-9a-f])/+git\1.\2/')
|
||||||
echo "Computed package version ${UPSTREAM_VER}"
|
echo "Computed package version ${UPSTREAM_VER}"
|
||||||
git archive --format=tar "--prefix=monado_${UPSTREAM_VER}/" "${COMMIT_TO_PACKAGE}" | gzip -n > "../monado_${UPSTREAM_VER}.orig.tar.gz"
|
git archive --format=tar "--prefix=monado_${UPSTREAM_VER}/" "${COMMIT_TO_PACKAGE}" | gzip -n > "../monado_${UPSTREAM_VER}.orig.tar.gz"
|
||||||
|
|
||||||
|
# Show hash of the orig.tar.gz for easy comparison
|
||||||
sha256sum "../monado_${UPSTREAM_VER}.orig.tar.gz"
|
sha256sum "../monado_${UPSTREAM_VER}.orig.tar.gz"
|
||||||
|
|
||||||
dch --newversion "${UPSTREAM_VER}-${PKG_REVISION}" \
|
dch --newversion "${UPSTREAM_VER}-${PKG_REVISION}" \
|
||||||
--preserve \
|
--preserve \
|
||||||
--force-distribution \
|
--force-distribution \
|
||||||
--distribution bullseye \
|
--distribution bullseye \
|
||||||
--release \
|
|
||||||
"Automated CI build of commit ${COMMIT_TO_PACKAGE}"
|
"Automated CI build of commit ${COMMIT_TO_PACKAGE}"
|
||||||
|
|
||||||
|
# Show changelog entry added
|
||||||
|
dpkg-parsechangelog --count 1
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue