[m-rev.] install ROTD versions of the mercury-gcc distribution

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Sep 30 23:02:25 AEST 2002


Estimated hours taken: 1
Branches: main

tools/test_mercury:
	Build, install and tag release-of-the-day releases
	of the mercury-gcc distribution.

Workspace: /home/ceres/fjh/ws-ceres2/mercury
Index: tools/test_mercury
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/test_mercury,v
retrieving revision 1.195
diff -u -d -r1.195 test_mercury
--- tools/test_mercury	3 Sep 2002 06:57:11 -0000	1.195
+++ tools/test_mercury	30 Sep 2002 12:58:05 -0000
@@ -53,9 +53,13 @@
 HOSTDIR=$TESTDIR/test_dirs/$HOST
 DIR=$HOSTDIR/build.$BRANCH.$C_COMPILER
 
-# Host to use to build the release of the day.
+# Host to use to build the release of the day source distribution
+# for the mercury-compiler, mercury-tests, and mercury-extras distributions.
 ROTD_HOST=earth
 
+# Host to use to build the release of the day mercury-gcc source distribution.
+GCC_ROTD_HOST=earth
+
 set_status () {
 	status=1;
 	echo '**' Error in $*
@@ -748,6 +752,20 @@
 	cd $DIR
 	;;
 esac
+case $HOST in $GCC_ROTD_HOST)
+	# build the mercury-gcc source distribution
+	cd $DIR &&
+	rm -f	mercury-gcc/stage[1-4] \
+		mercury-gcc/include \
+		mercury-gcc/mercury \
+		mercury-gcc/*.o &&
+	mv mercury-gcc mercury-gcc-$version &&
+	tar -cf - mercury-gcc-$version | gzip -9 \
+		> $UNSTABLE/mercury-gcc-$version.tar.gz &&
+	mv mercury-gcc-$version mercury-gcc &&
+	true
+	;;
+esac
 
 : run the regression tests on the stage2 compiler
 
@@ -990,6 +1008,15 @@
 	cp $UNSTABLE/mercury-*-$version-unstable.* $BETA_WEBDIR
 	;;
 esac
+case $HOST in $GCC_ROTD_HOST)
+	rsh $BETA_FTPHOST \
+		"rm -f $BETA_FTPDIR/mercury-gcc-$RELEASE_VERSION_PATTERN-unstable.tar.gz" &&
+	rcp $UNSTABLE/mercury-gcc-$version-unstable.* \
+		$BETA_FTPHOST:$BETA_FTPDIR  &&
+	rm -f $BETA_WEBDIR/mercury-gcc-$RELEASE_VERSION_PATTERN-unstable.tar.gz &&
+	cp $UNSTABLE/mercury-gcc-$version-unstable.* $BETA_WEBDIR
+	;;
+esac
 
 #-----------------------------------------------------------------------------#
 
@@ -1078,6 +1105,12 @@
 	echo "test_mercury tagging unstable $BASE_TAG_NAME, starting at `date`" 1>&2 &&
 	cvs rtag -d unstable-$BASE_TAG_NAME-$fullname_tag mercury clpr tests &&
 	cvs tag unstable-$BASE_TAG_NAME-$fullname_tag mercury tests &&
+	if [ -d gcc/. && -d mercury-gcc/. ]; then
+		cvs rtag -d unstable-$BASE_TAG_NAME-$fullname_tag mercury-gcc &&
+		cvs tag unstable-$BASE_TAG_NAME-$fullname_tag mercury-gcc
+	else	
+		true
+	fi &&
 	echo "test_mercury tagging unstable $BASE_TAG_NAME, finished at `date`" 1>&2
 } || set_status "creating binary distribution"
 
@@ -1100,6 +1133,12 @@
 	echo "test_mercury tagging stable $BASE_TAG_NAME, starting at `date`" 1>&2 &&
 	cvs rtag -d stable-$BASE_TAG_NAME-$fullname_tag mercury clpr tests &&
 	cvs tag stable-$BASE_TAG_NAME-$fullname_tag mercury tests &&
+	if [ -d gcc/. && -d mercury-gcc/. ]; then
+		cvs rtag -d stable-$BASE_TAG_NAME-$fullname_tag mercury-gcc &&
+		cvs tag stable-$BASE_TAG_NAME-$fullname_tag mercury-gcc
+	else	
+		true
+	fi &&
 	echo "test_mercury tagging stable $BASE_TAG_NAME, finished at `date`" 1>&2
        } || set_status "copying binary distribution"
     ;;
@@ -1113,6 +1152,7 @@
 	: if we get this far, then it worked.
 	[ -d $TESTDIR/logs ] || mkdir -p $TESTDIR/logs
 	date >> $TESTDIR/logs/success."$TEST_ID"
+
 	case $HOST in $ROTD_HOST)
 	    cd $DIR &&
 		# Delete older stable versions that this one replaces
@@ -1162,6 +1202,26 @@
 	        $BETA_WEBDIR/mercury-INSTALL-$version.txt
 	    ;;
 	esac || set_status "updating stable distribution"
+
+	case $HOST in $GCC_ROTD_HOST)
+	    cd $DIR &&
+		# Delete older stable versions that this one replaces
+	    rm -f $STABLE/mercury-gcc-$RELEASE_VERSION_PATTERN[0-9].tar.gz &&
+	    rm -f $STABLE/mercury-gcc-$version.tar.gz &&
+	    $LN $UNSTABLE/mercury-gcc-$version-unstable.tar.gz \
+	        $STABLE/mercury-gcc-$version.tar.gz &&
+
+	    rsh $BETA_FTPHOST "\
+	    rm -f $BETA_FTPDIR/mercury-gcc-$RELEASE_VERSION_PATTERN[0-9].tar.gz && 
+	    rm -f $BETA_FTPDIR/mercury-gcc-$version.tar.gz && 
+	    $LN $BETA_FTPDIR/mercury-gcc-$version-unstable.tar.gz \
+	        $BETA_FTPDIR/mercury-gcc-$version.tar.gz" &&
+
+	    rm -f $BETA_WEBDIR/mercury-gcc-$RELEASE_VERSION_PATTERN[0-9].tar.gz &&
+	    $LN $BETA_WEBDIR/mercury-gcc-$version-unstable.tar.gz \
+	        $BETA_WEBDIR/mercury-gcc-$version.tar.gz
+	    ;;
+	esac
 	;;
     *)
 	;;

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list