From 8617b0a82a0a2e9392de77c6739edc4eb734e9f0 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 15 Mar 2007 17:05:51 +0000 Subject: [PATCH] - abort when "cvs up" failed (due to failed connection) - improve fg-upload example: copying upload address to clipboard (KDE) --- scripts/tools/fg-submit | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/tools/fg-submit b/scripts/tools/fg-submit index 08dbe53cb..02975dd00 100755 --- a/scripts/tools/fg-submit +++ b/scripts/tools/fg-submit @@ -50,9 +50,14 @@ # echo "deleting $1 $2" # rm -f $1 $2 # -# echo "Done. URL: ftp://server.com/$1" +# URL=ftp://server.com/$1 +# +# # copy URL to KDE's clipboard, so that MMB-clicking pastes it +# dcop klipper klipper setClipboardContents $URL +# +# echo "Done. --> $URL" # else -# echo "arghh ... HELP! HELP!" +# echo "$0: uploading failed!" # fi # # @@ -260,7 +265,7 @@ trap "rm -rf $TMP" 0 1 2 3 13 15 -# move old files out of the way giving sequential suffixes +# move old files out of the way adding sequential suffixes for i in $DIFF $CDIFF $ARCHIVE; do [ -f $i ] && mv $i $(backup_filename $i) done @@ -268,7 +273,7 @@ done LOG "updating and checking for new files ..." -$CVS -q up -dP >$TMP/up +$CVS -q up -dP >$TMP/up || exit 1 if grep "^C " $TMP/up &>/dev/null; then