diff: fix mercury-compiler.spec double-maintenance problem
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Mar 18 22:13:45 AEDT 1999
Estimated hours taken: 0.25
Mmakefile:
mercury-compiler.spec:
.mercury-compiler.spec.in:
Avoid a double-maintenance problem with the version numbers
in `mercury-compiler.spec' by building that file
automatically from `.mercury-compiler.spec.in', substituting
the appropriate value for @VERSION at .
cvs diff: .mercury-compiler.spec.in is a new entry, no comparison available
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.34
diff -u -r1.34 Mmakefile
--- Mmakefile 1999/03/13 01:34:21 1.34
+++ Mmakefile 1999/03/14 07:55:53
@@ -101,7 +101,7 @@
#-----------------------------------------------------------------------------#
.PHONY: all
-all: README INSTALL $(SUBDIRS)
+all: README INSTALL mercury-compile.spec $(SUBDIRS)
.PHONY: util
util: scripts
@@ -193,6 +193,10 @@
INSTALL: .INSTALL.in VERSION
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
#-----------------------------------------------------------------------------#
cvs diff: mercury-compiler.spec was removed, no comparison available
--- mercury-compiler.spec Sun Mar 14 18:56:48 1999
+++ .mercury-compiler.spec.in Sun Mar 14 18:54:54 1999
@@ -9,7 +9,7 @@
Summary: The logic/functional programming language Mercury
Name: mercury-compiler
-Version: 0.8.1
+Version: @VERSION@
Release: 1
Packager: Red Hat Contrib|Net <rhcn-bugs at redhat.com>
Distribution: Red Hat Contrib|Net
@@ -18,7 +18,7 @@
Group: Development/Languages
Provides: mercury
Requires: gcc make
-Source: ftp.mercury.cs.mu.oz.au:/pub/mercury/mercury-compiler-0.8.1.tar.gz
+Source: ftp.mercury.cs.mu.oz.au:/pub/mercury/mercury-compiler- at VERSION@.tar.gz
URL: http://www.cs.mu.oz.au/mercury/
%description
@@ -40,7 +40,7 @@
- Initial version.
%prep
-%setup -n mercury-compiler-0.8.1
+%setup -n mercury-compiler- at VERSION@
%build
sh configure --prefix=/usr
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list