From 271ecad6e9bdb7ff3d7dd7e00a3750d22581f1eb Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Mon, 14 Oct 2013 20:13:34 +0200 Subject: Pseudo-handle the "can't find file to patch at input line X" error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- patch-fix-offsets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patch-fix-offsets b/patch-fix-offsets index bd453b0..f1cc0be 100755 --- a/patch-fix-offsets +++ b/patch-fix-offsets @@ -30,6 +30,10 @@ patch_figure_expr() { perfile_expr=${perfile_expr:+${perfile_expr}:} perfile_expr+="${hunk}/${offset}" ;; + can\'t\ find\ file\ to\ patch\ at\ input\ line\ *) + echo "Forgot to specify -p option?" + exit 1 + ;; esac done < <(patch -o- "$@" 2>&1 >/dev/null; echo '@@EOF@@') echo "${final_expr}" -- cgit