[m-rev.] trivial diff: fix path in mercury-compiler.spec file

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Feb 8 22:16:28 AEDT 2004


Estimated hours taken: 0.25
Branches: main, release

Mmakefile:
	In the code for generating the mercury-compiler.spec file,
	update the directory name used for beta releases -- since
	about a year ago, releases get put in a subdirectory of the
	beta-releases directory, e.g. ".../beta-releases/rotd/" or
	".../beta-releases/0.11.1-beta/", not directly in the
	beta-releases directory itself.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.104
diff -u -d -r1.104 Mmakefile
--- Mmakefile	10 Dec 2003 06:37:36 -0000	1.104
+++ Mmakefile	8 Feb 2004 11:10:50 -0000
@@ -295,8 +295,10 @@
 
 mercury-compiler.spec: .mercury-compiler.spec.in VERSION
 	version_with_underscores=`echo $(VERSION) | sed 's/-/_/g'`; \
-	maybe_beta=`case $(VERSION) in rotd*|*beta*) \
-			echo "beta-releases/" ;; \
+	beta_dir=`expr "$(VERSION)" : '\(.*beta\).*'`; \
+	maybe_beta=`case $(VERSION) in \
+			rotd*) echo "beta-releases/rotd/" ;; \
+			*beta*) echo "beta-releases/$$beta_dir/" ;; \
 		    esac`; \
 	sed -e "s/@VERSION@/$(VERSION)/g" \
 	    -e "s/@VERSION_WITH_UNDERSCORES@/$$version_with_underscores/g" \

-- 
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