diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:01:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:01:11 +0000 |
commit | 3be121a05dcd170854a8dac6437b29f297a6ff4e (patch) | |
tree | 05cf57183f5a23394eca11b00f97a74a5dfdf79d /examples/debbisect_buildsrc.sh | |
parent | Initial commit. (diff) | |
download | devscripts-upstream/2.23.4+deb12u1.tar.xz devscripts-upstream/2.23.4+deb12u1.zip |
Adding upstream version 2.23.4+deb12u1.upstream/2.23.4+deb12u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/debbisect_buildsrc.sh')
-rwxr-xr-x | examples/debbisect_buildsrc.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/debbisect_buildsrc.sh b/examples/debbisect_buildsrc.sh new file mode 100755 index 0000000..df27538 --- /dev/null +++ b/examples/debbisect_buildsrc.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# use this script to build a source package with debbisect like this: +# +# $ DEBIAN_BISECT_SRCPKG=mysrc ./debbisect --cache=./cache "two years ago" yesterday /usr/share/doc/devscripts/examples/debbisect_buildsrc.sh +# +# copy this script and edit it if you want to customize it + +set -eu + +mmdebstrap --variant=apt unstable \ +--aptopt='Apt::Key::gpgvcommand "/usr/share/debuerreotype/scripts/.gpgv-ignore-expiration.sh"' \ +--aptopt='Acquire::Check-Valid-Until "false"' \ +--customize-hook='chroot "$1" apt-get --yes build-dep '"$DEBIAN_BISECT_SRCPKG" \ +--customize-hook="chroot \"\$1\" dpkg-query --showformat '\${binary:Package}=\${Version}\n' --show" \ +--customize-hook='chroot "$1" apt-get source --build '"$DEBIAN_BISECT_SRCPKG" \ +/dev/null $DEBIAN_BISECT_MIRROR "deb-src $DEBIAN_BISECT_MIRROR unstable main" |