[m-rev.] diff: ROTD RPM support

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Oct 17 03:05:30 AEST 2002


Estimated hours taken: 0.75
Branches: main

A first step towards building RPM distributions for ROTD releases.

Mmakefile:
.mercury-compiler.spec.in:
	Handle dashes in the version name when creating mercury-compiler.spec.
	List the ftp location as being from the beta-releases subdirectory
	if the version is rotd-* or *beta*.

Workspace: /home/ceres/fjh/ws-ceres2/mercury
Index: .mercury-compiler.spec.in
===================================================================
RCS file: /home/mercury1/repository/mercury/.mercury-compiler.spec.in,v
retrieving revision 1.3
diff -u -d -r1.3 .mercury-compiler.spec.in
--- .mercury-compiler.spec.in	4 Apr 2001 16:59:00 -0000	1.3
+++ .mercury-compiler.spec.in	16 Oct 2002 16:46:32 -0000
@@ -9,7 +9,7 @@
 
 Summary:      The logic/functional programming language Mercury
 Name:         mercury-compiler
-Version:      @VERSION@
+Version:      @VERSION_WITH_UNDERSCORES@
 Release:      1
 Packager:     The Mercury Group <mercury at cs.mu.oz.au>
 Vendor:	      The Mercury Group <mercury at cs.mu.oz.au>
@@ -17,7 +17,7 @@
 Group: 	      Development/Languages
 Provides:     mercury 
 Requires:     gcc make
-Source:       ftp.mercury.cs.mu.oz.au:/pub/mercury/mercury-compiler- at VERSION@.tar.gz
+Source:       ftp.mercury.cs.mu.oz.au:/pub/mercury/@MAYBE_BETA at mercury-compiler-@VERSION at .tar.gz
 URL:	      http://www.cs.mu.oz.au/mercury/
 
 %description
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.88
diff -u -d -r1.88 Mmakefile
--- Mmakefile	15 Oct 2002 16:23:48 -0000	1.88
+++ Mmakefile	16 Oct 2002 16:56:46 -0000
@@ -244,8 +244,14 @@
 	sed 's/@VERSION@/$(VERSION)/g' .INSTALL.in > INSTALL
 
 mercury-compiler.spec: .mercury-compiler.spec.in VERSION
-	sed 's/@VERSION@/$(VERSION)/g' .mercury-compiler.spec.in \
-		> mercury-compiler.spec
+	version_with_underscores=`echo $(VERSION) | sed 's/-/_/g'`; \
+	maybe_beta=`case $(VERSION) in rotd*|*beta*) \
+			echo "beta-releases/" ;; \
+		    esac`; \
+	sed -e "s/@VERSION@/$(VERSION)/g" \
+	    -e "s/@VERSION_WITH_UNDERSCORES@/$$version_with_underscores/g" \
+	    -e "s^@MAYBE_BETA@^$$maybe_beta^g" \
+	    .mercury-compiler.spec.in > mercury-compiler.spec
 
 #-----------------------------------------------------------------------------#
 

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