]> thyrsus.com Git - cupl.git/commitdiff
Ready to ship.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 03:20:15 +0000 (03:20 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 28 Jul 2000 03:20:15 +0000 (03:20 +0000)
Makefile
READ.ME
cupl.spec

index 45e53763b05a80aca919ab0b182799cfaea971ef..5cf7281cf495e67207a63fb861f5ad3600452876 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,8 @@
 #
 
 # 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
@@ -47,15 +46,27 @@ toktab.h: tokens.h
 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
diff --git a/READ.ME b/READ.ME
index cc438cecf5c80e14b3823d6b371841944d8ef546..20d2a6ac6aae499448d6b597430dbb706ecea211 100644 (file)
--- a/READ.ME
+++ b/READ.ME
@@ -91,18 +91,22 @@ REGRESS                     -- perform regression test on the front end
 * 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.
index ebd65f0a61a9bf3f0806ee111afd13cd2e4c22a6..a7ed8abb56f55b7fb59d2c0d791096579f28aa0c 100644 (file)
--- a/cupl.spec
+++ b/cupl.spec
@@ -1,10 +1,14 @@
-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