[pkg-perl-tools] 03/04: examples/check-build: new option to strip all binary packages
gregor herrmann
gregoa at debian.org
Thu Oct 1 22:05:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository pkg-perl-tools.
commit 954283f315a3ddeee5266f9fbbca07e04b25b042
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Oct 1 23:59:57 2015 +0200
examples/check-build: new option to strip all binary packages
from the .changes file, with fallback option to only strip arch:any ones.
Thanks: Salvatore Bonaccorso for coming up with this elegant patch.
---
examples/check-build | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/examples/check-build b/examples/check-build
index 5ac2dc7..bc6bdc9 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -147,15 +147,27 @@ else
echo
cat "$CHANGES"
echo
- if grep -q "_$ARCH\.u\?deb" "$CHANGES"; then
- read -n 1 -p "strip arch:any .(u)debs? y/N " STRIPARCHANY
- if [ "$STRIPARCHANY" = "y" ]; then
- ALLONLYCHANGES="${CHANGES%%_$ARCH.changes}_allonly.changes"
- mergechanges --indep "$CHANGES" "$CHANGES" > "$ALLONLYCHANGES"
- debsign "$ALLONLYCHANGES"
+ if grep -q "\.u\?deb" "$CHANGES"; then
+ read -n 1 -p "strip binary (u)debs? y/N " STRIPDEBS
+ if [ "$STRIPDEBS" = "y" ]; then
+ SOURCEONLYCHANGES="${CHANGES%%_$ARCH.changes}_sourceonly.changes"
+ mergechanges --source "$CHANGES" "$CHANGES" > "$SOURCEONLYCHANGES"
+ debsign "$SOURCEONLYCHANGES"
echo
- cat "$ALLONLYCHANGES"
- CHANGES="$ALLONLYCHANGES"
+ cat "$SOURCEONLYCHANGES"
+ CHANGES="$SOURCEONLYCHANGES"
+ else
+ echo
+ # Fallback to question if only want to strip arch:any (u)debs
+ read -n 1 -p "strip arch:any .(u)debs? y/N " STRIPARCHANY
+ if [ "$STRIPARCHANY" = "y" ]; then
+ ALLONLYCHANGES="${CHANGES%%_$ARCH.changes}_allonly.changes"
+ mergechanges --indep "$CHANGES" "$CHANGES" > "$ALLONLYCHANGES"
+ debsign "$ALLONLYCHANGES"
+ echo
+ cat "$ALLONLYCHANGES"
+ CHANGES="$ALLONLYCHANGES"
+ fi
fi
echo
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list