#
# Note: When the version changes, you also have to change
-# * the name of the containing directory
-# * the RPM spec file
-V=1.2
+# the RPM spec file and the lsm.
+VERS=1.3
CDEBUG = -g # use -O for production, -g for debugging
YFLAGS = -vt # use -l for production, -vt for debugging
lextest: lexer.c tokens.h tokdump.o
$(CC) $(CFLAGS) -DMAIN lexer.c tokdump.o -o lextest
-cupl.tar:
- (cd ..; tar -cvf cupl-$(V)/cupl.tar `cat cupl-$(V)/MANIFEST | sed "/\(^\| \)/s// cupl-$(V)\//g"`)
-cupl.tar.gz: cupl.tar
- gzip -f cupl.tar
+cupl-$(VERS).tar.gz: $(SOURCES)
+ @ls $(SOURCES) | sed s:^:cupl-$(VERS)/: >MANIFEST
+ @(cd ..; ln -s cupl cupl-$(VERS))
+ (cd ..; tar -czvf cupl/cupl-$(VERS).tar.gz `cat cupl/MANIFEST`)
+ @(cd ..; rm cupl-$(VERS))
+
+cupl-$(VERS).shar:
+ shar $(SOURCES) >cupl-$(VERS).shar
+
+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 .
+ cp $(RPMROOT)/SRPMS/cupl-$(VERS)*.src.rpm .
clean:
- rm -f cupl *~ *.o toktab.h tokens.h grammar.c lexer.c lextest y.output cupl.tar cupl.tar.gz
+ rm -f cupl *~ *.o toktab.h tokens.h grammar.c lexer.c lextest y.output cupl.tar cupl.tar.gz *.rpm cupl-*.tar.gz
-rpm: cupl.tar.gz
- cp cupl.tar.gz /usr/src/SOURCES/cupl-$(V).tar.gz
- cp cupl.spec /usr/src/SPECS/cupl-$(V)-1.spec
- rpm -ba cupl-$(V)-1.spec
* GOTO blabel END always goes to the end of the current PERFORM block, even
if the label is that of an enclosing block.
-* Because the cupl interpreter also interprets CORC, the CORC keywords
+* Because the cupl interpreter also interprets CORC, the CUPL keywords
BEGIN, DEC, DECREASE, EQL, GEQ, GTR, INC, INCREASE, INT, LSS, NEQ, NOTE,
- REPEAT, TITLE, UNTIL, and $ are also reserved words in CUPL.
+ 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.ccil.org/~esr/home.html for updates and other
+my home page at http://www.tuxedo.org/~esr/home.html for updates and other
related resources.
---------------------------------------------------------------------------
-Version 1.2:
+Version 1.3: Thu Jul 27 23:15:53 EDT 2000
+ * Cleanup release. Use modern packaging and RPMs.
+
+Version 1.2: Fri Jun 28 13:12:04 EDT 1996
* Fixed off-by-one bug in TITLE processing.
* Merged tour.doc into cupl.mm.
* Added "Hello World" program.
-Version 1.1:
+
+Version 1.1: Fri Nov 08 00:00:04 EST 1994
* Added CORC support.
* Fixed a core-dump bug in the prettyprinter.
-Description: interpreter for the archaic CUPL and CORC programming languages
Name: cupl
-Version: 1.1
+Version: 1.3
Release: 1
-Source: locke.ccil.org:/pub/esr/cupl-1.1.tar.gz
+Source: locke.ccil.org:/pub/esr/cupl-1.3.tar.gz
Copyright: BSD-like
Group: Languages
+Summary: Interpreter for the archaic CUPL and CORC programming languages.
+
+%description
+Interpreter for the archaic CUPL and CORC programming languages.
+Includes full documentation and a chrestomathy of programs.
%prep
%setup