[m-dev.] diff: remove files before ln in test_mercury

Tyson Dowd trd at cs.mu.OZ.AU
Wed Jan 26 16:54:55 AEDT 2000


Hi,

Another problem I bumped into.

===================================================================


Estimated hours taken: 0.5

tools/test_mercury:
	Fix a problem with doing a versioned release over several nights.
	We need to remove the current version as well as the rotd
	versions before running "ln".


Index: test_mercury
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/test_mercury,v
retrieving revision 1.104
diff -u -r1.104 test_mercury
--- test_mercury	1999/12/14 07:42:04	1.104
+++ test_mercury	2000/01/25 01:28:58
@@ -618,8 +618,10 @@
 	date >> $TESTDIR/logs/successful_tests.$HOST
 	case $HOST in murlibobo)
 	    cd $DIR &&
-		# Only delete the stable rotds.
+		# Delete older stable rotds and anything stable tar files 
+		# with the same version.
 	    rm -f $STABLE/mercury-*-rotd-*[0-9].tar.gz &&
+	    rm -f $STABLE/mercury-*-$version.tar.gz &&
 	    $LN $UNSTABLE/mercury-compiler-$version-unstable.tar.gz \
 	        $STABLE/mercury-compiler-$version.tar.gz &&
 	    $LN $UNSTABLE/mercury-extras-$version-unstable.tar.gz \
@@ -627,9 +629,9 @@
 	    $LN $UNSTABLE/mercury-tests-$version-unstable.tar.gz \
 	        $STABLE/mercury-tests-$version.tar.gz &&
 
-		# Only delete the stable rotds.
 	    rsh $BETA_FTPHOST "\
-	    rm -f $BETA_FTPDIR/mercury-*-rotd-*[0-9].tar.gz &&
+	    rm -f $BETA_FTPDIR/mercury-*-rotd-*[0-9].tar.gz && 
+	    rm -f $BETA_FTPDIR/mercury-*-$version.tar.gz && 
 	    $LN $BETA_FTPDIR/mercury-compiler-$version-unstable.tar.gz \
 	        $BETA_FTPDIR/mercury-compiler-$version.tar.gz &&
 	    $LN $BETA_FTPDIR/mercury-extras-$version-unstable.tar.gz \
@@ -637,8 +639,8 @@
 	    $LN $BETA_FTPDIR/mercury-tests-$version-unstable.tar.gz \
 	        $BETA_FTPDIR/mercury-tests-$version.tar.gz" &&
 
-		# Only delete the stable rotds.
 	    rm -f $BETA_WEBDIR/mercury-*-rotd-*[0-9].tar.gz &&
+	    rm -f $BETA_WEBDIR/mercury-*-$version.tar.gz && 
 	    $LN $BETA_WEBDIR/mercury-compiler-$version-unstable.tar.gz \
 	        $BETA_WEBDIR/mercury-compiler-$version.tar.gz &&
 	    $LN $BETA_WEBDIR/mercury-extras-$version-unstable.tar.gz \


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't eveyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list