]> git.mxchange.org Git - flightgear.git/commitdiff
- abort when "cvs up" failed (due to failed connection)
authormfranz <mfranz>
Thu, 15 Mar 2007 17:05:51 +0000 (17:05 +0000)
committermfranz <mfranz>
Thu, 15 Mar 2007 17:05:51 +0000 (17:05 +0000)
- improve fg-upload example: copying upload address to clipboard (KDE)

scripts/tools/fg-submit

index 08dbe53cb9e5dfa0a3b9f951a0c033fbf12386a4..02975dd0060efb310bbcc3c7028cddba602efdad 100755 (executable)
 #             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