From: Ian Jackson Date: Sat, 5 Nov 2016 12:07:15 +0000 (+0000) Subject: cvs-adjustroot: reinvoke oursevles via "$0" rather than our hardcoded name. Makes... X-Git-Tag: archive/debian/5.0.0~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=49be30049d9af690712ea8c9765aeff7af98d401 cvs-adjustroot: reinvoke oursevles via "$0" rather than our hardcoded name. Makes testing easier, etc. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 717e31d..5c4fc9b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ chiark-utils (4.5.0~iwj5) unstable; urgency=medium Fixes the first half of #839708. * cvs-adjustroot: silently succeed for */CVS/Root entries which already match the new value. Closes:#839708 (second half). + * cvs-adjustroot: reinvoke oursevles via "$0" rather than + our hardcoded name. Makes testing easier, etc. -- diff --git a/scripts/cvs-adjustroot b/scripts/cvs-adjustroot index 0448d9a..080029c 100755 --- a/scripts/cvs-adjustroot +++ b/scripts/cvs-adjustroot @@ -48,6 +48,6 @@ fi # nonzero exit status when appropriate. find -path '*/CVS/Root' \ - \( -exec cvs-adjustroot --reinvoke "$old" "$new" '{}' ';' \ + \( -exec "$0" --reinvoke "$old" "$new" '{}' ';' \ -o -exec false '{}' + \ \)