Package: chiark-utils
Version: 4.1.28
Tags: patch
Hi,
As discussed on IRC, chiark-repomove doesn't work with seds that
require a trailing newline (e.g. solaris sed). The fix is:
bash-2.05$ diff -u cvs-repomove.old cvs-repomove
--- cvs-repomove.old Wed Sep 3 15:00:48 2008
+++ cvs-repomove Wed Sep 3 15:21:04 2008
@@ -97,7 +97,7 @@
ls -d -- $srcrepo/CVSROOT >/dev/null
'"
- dstrepotrans="$(printf "%s" "$dstrepo" | tr / :)"
+ dstrepotrans="$(printf '%s\n' "$dstrepo" | tr / :)"
movingto="moving-to-$dsthost:$dstrepotrans"
resume="$("$CVS_RSH" "$srchost" bash -ec "'
if test -d $srcrepo/$module..$movingto; then
@@ -244,7 +244,7 @@
exit 4
;;
*..moved-to-*)
- goose="$(printf "%s" \
+ goose="$(printf '%s\n' \
"${new_goose_info#*..moved-to-}" | \
tr : / | sed -e 's,/,:,')"
;;
Thanks,
Matthew
--
Matthew Vernon MA VetMB LGSM MRCVS
Farm Animal Epidemiology and Informatics Unit
Department of Veterinary Medicine, University of Cambridge
http://www.cus.cam.ac.uk/~mcv21/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]