Skip to content

Commit 5dcef2c

Browse files
MitchellAugustinnvmochs
authored andcommitted
CANONICAL: [Infrastructure] Make orig name more dynamic
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
1 parent 338211a commit 5dcef2c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

debian/build-source-package-from-git.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ git commit -s -a -m "[DROP THIS] Include submodules for packaging"
2828

2929
# Produce an orig tarball
3030
mkdir -p deb
31-
git archive --prefix=qemu-10.1.0/ -o deb/qemu_10.1.0+nvidia1.orig.tar.gz HEAD
31+
debversion=$(dpkg-parsechangelog -S Version | sed 's/^[0-9]\+://' | sed 's/-[^-]*$//')
32+
git archive --prefix=qemu-10.1.0/ -o deb/qemu_$debversion.orig.tar.gz HEAD

0 commit comments

Comments
 (0)