From: Eric S. Raymond Date: Fri, 26 Dec 2003 19:05:58 +0000 (+0000) Subject: New packaging machinery. X-Git-Tag: 1-6~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ce46d1bed29ff006fa38fbcbe38c762c4641e28b;p=cupl.git New packaging machinery. --- diff --git a/Makefile b/Makefile index 837fc4e..5233c39 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,7 @@ # # Makefile for the CUPL/CORC project # - -# Note: When the version changes, you also have to change the RPM spec file. -VERS=1.4 +VERS=1.5 CDEBUG = -g # use -O for production, -g for debugging YFLAGS = -vt # use -l for production, -vt for debugging @@ -49,7 +47,7 @@ lextest: lexer.c tokens.h tokdump.o cupl.1: cupl.xml xmlto man cupl.xml -DOCS = READ.ME COPYING NEWS corc.doc cupl.doc cupl.xml +DOCS = READ.ME COPYING corc.doc cupl.doc cupl.xml cupl.spec SOURCES = Makefile cupl.[lyh] $(MODULES:.o=.c) TESTS = test/[abcdefghijklmnopqrstuvwxyz]* test/MAKEREGRESS test/REGRESS test/TESTALL @@ -62,13 +60,9 @@ cupl-$(VERS).tar.gz: $(SOURCES) $(DOCS) cupl.1 dist: cupl-$(VERS).tar.gz RPMROOT=/usr/src/redhat -RPM = rpm -RPMFLAGS = -ba rpm: dist - cp cupl-$(VERS).tar.gz $(RPMROOT)/SOURCES; - cp cupl.spec $(RPMROOT)/SPECS - cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) cupl.spec - cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/cupl-$(VERS)*.rpm . + rpmbuild --define 'myversion $(VERS)' -ta cupl-$(VERS).tar.gz + cp $(RPMROOT)/RPMS/*/cupl-$(VERS)*.rpm . cp $(RPMROOT)/SRPMS/cupl-$(VERS)*.src.rpm . clean: diff --git a/READ.ME b/READ.ME index 6d36564..6908561 100644 --- a/READ.ME +++ b/READ.ME @@ -18,7 +18,7 @@ CORC is a near-subset of CUPL. There are some minor differences in keywords. In CORC, the statement GO TO is equivalent to CUPL's GO TO END. The cupl implementation is a Retrocomputing Museum project. The -Retrocomputing Museum +Retrocomputing Museum revives long-dead languages for the benefit of students and historians of programming-language design. CUPL was chosen as a representative of a significant class of mid-1960s teaching languages. @@ -31,7 +31,7 @@ READ.ME -- this file cupl.doc -- transcription of the original CUPL documentation corc.doc -- transcription of the original CORC documentation cupl.xml -- description and discussion of the language -NEWS -- project history +cupl.spec -- project history is in this RPM spec file Source files @@ -96,7 +96,7 @@ REGRESS -- perform regression test on the front end BEGIN, DEC, DECREASE, EQL, GEQ, GTR, INC, INCREASE, INT, LSS, NEQ, NOTE, REPEAT, TITLE, UNTIL, and $ are also reserved words in CORC. -Send comments, bug reports, and fixes to esr@snark.thyrsus.com. Also see -my home page at http://www.tuxedo.org/~esr/home.html for updates and other -related resources. +Send comments, bug reports, and fixes to esr@thyrsus.com. Also see my +home page at http://www.catb.org/~esr for updates and other related +resources. diff --git a/cupl.spec b/cupl.spec index c9c0ea7..e261f4a 100644 --- a/cupl.spec +++ b/cupl.spec @@ -1,11 +1,12 @@ Name: cupl -Version: 1.4 +Version: %{myversion} Release: 1 -URL: http://www.tuxedo.org/~esr/ +URL: http://www.tuxedo.org/~esr/cupl/ Source0: %{name}-%{version}.tar.gz -Copyright: GPL +License: GPL Group: Languages Summary: Interpreter for the archaic CUPL and CORC programming languages. +%undefine __check_files %description Interpreter for the archaic CUPL and CORC programming languages. @@ -23,6 +24,27 @@ cp cupl /usr/bin cp cupl.1 /usr/share/man/man1/cupl.1 %files -%doc READ.ME COPYING NEWS corc.doc cupl.doc test +%doc READ.ME COPYING corc.doc cupl.doc test /usr/bin/cupl /usr/share/man/man1/cupl.1 + +%changelog +* Fri Dec 26 2003 Eric S. Raymond 1.5 +- Updated RPM packaging machinery. + +* Tue Jul 30 2000 Eric S. Raymond 1.4 +- Move documentation to XML. + +* Thu Jul 27 2000 Eric S. Raymond 1.3 +- Cleanup release. Use modern packaging and RPMs. + +RPM chokes on the older dates below. + +Fri Jun 28 1996 Eric S. Raymond 1.2 +- Fixed off-by-one bug in TITLE processing. +- Merged tour.doc into cupl.mm. +- Added "Hello World" program. + +Fri Nov 08 1994 Eric S. Raymond 1.1 +- Added CORC support. +- Fixed a core-dump bug in the prettyprinter. diff --git a/cupl.xml b/cupl.xml index 68506a4..dfda866 100644 --- a/cupl.xml +++ b/cupl.xml @@ -1251,5 +1251,9 @@ CORC-specific keywords (NOTE, BEGIN, DEC, DECREASE, EQL, GEQ, GTR, INC, INCREASE, INT, LEQ, LSS, NEQ, REPEAT, TITLE, UNTIL, $) during lexing, and execute() modifies its behavior appropriately. +AUTHOR + +Eric S. Raymond esr@snark.thyrsus.com. +