[debrepatch] 01/01: repatch: actually implement -b and use -p instead for patches
Ximin Luo
infinity0 at debian.org
Mon Sep 26 18:19:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository debrepatch.
commit 66cb907719baaf71ac58b1046869e69cd2bcb145
Author: Ximin Luo <infinity0 at debian.org>
Date: Mon Sep 26 20:18:40 2016 +0200
repatch: actually implement -b and use -p instead for patches
---
repatch | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/repatch b/repatch
index 409eeb1..3432181 100755
--- a/repatch
+++ b/repatch
@@ -7,18 +7,19 @@ scriptdir="$(readlink -f "$(dirname "$0")")"
debpatch="$scriptdir/debpatch"
set -e
-USAGE="Usage: $0 [-hyuf] [-b dir] [-d dir] SOURCE_PACKAGE [post_patch_command [args ...]]"
+USAGE="Usage: $0 [-hyuf] [-p dir] [-b dir] SOURCE_PACKAGE [post_patch_command [args ...]]"
force_yes=false
auto_update=false
force_postpatch=false
patchdir="./patches"
builddir="./build"
-while getopts 'hd:yuf' o; do
+while getopts 'hyufb:p:' o; do
case $o in
y ) force_yes=true;;
- d ) patchdir="$OPTARG";;
u ) auto_update=true;;
f ) force_postpatch=true;;
+ p ) patchdir="$OPTARG";;
+ b ) builddir="$OPTARG";;
h ) cat <<EOF
$USAGE
@@ -28,14 +29,14 @@ mentioned in d/changelog from the debdiff, then run a command from inside the
unpacked and patched package source directory.
-h This help text.
- -d Directory to find patches in; default ./patches
- -b Directory to build new packages in; default ./build
-y Answer "yes" to all questions, e.g. automatically trying to
refresh d/patches when a naive source-build fails.
-u Run "apt-get update" first; requires sudo.
-f Run post_patch_command even if there was no version change,
i.e. the current version is the same as what is mentioned in
debian/changelog in the patch file.
+ -p Directory to find patches in; default ./patches
+ -b Directory to build new packages in; default ./build
EOF
exit 2
;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debrepatch.git
More information about the Reproducible-commits
mailing list