debian/0000755000000000000000000000000012154117451007167 5ustar debian/watch0000644000000000000000000000021712154117357010225 0ustar version=3 opts=dversionmangle=s/\+cvs.*// \ https://java.net/projects/javacc/downloads .*javacc-([\d\.]*)src.tar.gz debian debian/orig-tar.sh debian/manpage.sgml0000644000000000000000000001210111064734532011462 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Nicolas"> Sabouret"> juillet 15, 2003"> 1"> nico@debian.org"> JAVACC"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; a java compiler compiler &dhpackage; option-settings inputfile jjtree option-settings inputfile jjdoc inputfile DESCRIPTION This manual page documents briefly the &dhpackage;, jjtree and jjdoc commands. This manual page was written for the &debian; distribution because the original program does not have a manual page. &dhpackage; is a parser generator for use with Java jjtree is a tree builder for &dhpackage jjdoc is a documentation generator &dhpackage OPTIONS &dhpackage;, jjtree or jjdoc without any argument prints a small help with the list of available options. "option-settings" is a sequence of settings separated by spaces. Each option setting must be of one of the following forms: (e.g. -STATIC=false) (e.g. -STATIC:false) (equivalent to -optionname=true. e.g., -STATIC) (equivalent to -optionname=false. e.g., -NOSTATIC) Option settings are not case-sensitive, so one can say instead of . Option values must be appropriate for the corresponding option, and must be either an integer or a string value. For a list of available options, please refer to the command's internal help. EXAMPLE % &dhpackage; -STATIC=false -LOOKAHEAD:2 -debug_parser mygrammar.jj % jjtree -STATIC=false mygrammar.jjt % jjdoc mygrammar.jj AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
debian/patches/0000755000000000000000000000000012154117357010623 5ustar debian/patches/javacctarget.patch0000644000000000000000000000057312154117357014307 0ustar Description: Set the compiler target Forwarded: not-needed --- a/src/org/javacc/parser/build.xml +++ b/src/org/javacc/parser/build.xml @@ -53,6 +53,7 @@ destdir="${javacc.root}/classes" debug="${build.compiler.debug}" source="1.4" + target="1.4" classpath="${javacc.root}/classes:${junit.jar}"> debian/patches/executables.patch0000644000000000000000000000152212154117357014150 0ustar Description: Set the proper path to javacc.jar on Debian for the command line tools Forwarded: not-needed --- a/bin/javacc +++ b/bin/javacc @@ -1,9 +1,5 @@ #!/bin/sh -JAR="`dirname $0`/lib/javacc.jar" - -case "`uname`" in - CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;; -esac +JAR=/usr/share/java/javacc.jar java -classpath "$JAR" javacc "$@" --- a/bin/jjdoc +++ b/bin/jjdoc @@ -1,9 +1,5 @@ #!/bin/sh -JAR="`dirname $0`/lib/javacc.jar" - -case "`uname`" in - CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;; -esac +JAR=/usr/share/java/javacc.jar java -classpath "$JAR" jjdoc "$@" --- a/bin/jjtree +++ b/bin/jjtree @@ -1,9 +1,5 @@ #!/bin/sh -JAR="`dirname $0`/lib/javacc.jar" - -case "`uname`" in - CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;; -esac +JAR=/usr/share/java/javacc.jar java -classpath "$JAR" jjtree "$@" debian/patches/series0000644000000000000000000000006312154117357012037 0ustar executables.patch javacctarget.patch ParseGen.diff debian/patches/ParseGen.diff0000644000000000000000000000421012154117357013156 0ustar Description: Fixes a regression causing the encountered/expected token list to be empty Author: Dag H. Wanvik Forwarded: yes Bug: https://java.net/jira/browse/JAVACC-244 --- a/src/org/javacc/parser/ParseGen.java +++ b/src/org/javacc/parser/ParseGen.java @@ -570,21 +570,24 @@ ostr.println(" for (int i = 0; i < jj_endpos; i++) {"); ostr.println(" jj_expentry[i] = jj_lasttokens[i];"); ostr.println(" }"); + ostr.println(" boolean exists = false;"); if (!Options.getGenerateGenerics()) - ostr.println(" jj_entries_loop: for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) {"); + ostr.println(" for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) {"); else - ostr.println(" jj_entries_loop: for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) {"); + ostr.println(" for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) {"); + ostr.println(" exists = true;"); ostr.println(" int[] oldentry = (int[])(it.next());"); ostr.println(" if (oldentry.length == jj_expentry.length) {"); ostr.println(" for (int i = 0; i < jj_expentry.length; i++) {"); ostr.println(" if (oldentry[i] != jj_expentry[i]) {"); - ostr.println(" continue jj_entries_loop;"); + ostr.println(" exists = false;"); + ostr.println(" break;"); ostr.println(" }"); ostr.println(" }"); - ostr.println(" jj_expentries.add(jj_expentry);"); - ostr.println(" break jj_entries_loop;"); + ostr.println(" if (exists) break;"); ostr.println(" }"); ostr.println(" }"); + ostr.println(" if (!exists) jj_expentries.add(jj_expentry);"); ostr.println(" if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;"); ostr.println(" }"); ostr.println(" }"); debian/compat0000644000000000000000000000000211064734532010371 0ustar 5 debian/README.Debian0000644000000000000000000000140311064734532011232 0ustar Debian README for JavaCC ------------------------ JavaCC is now released under a pure BSD license, including the bootstrap Jar. There is now no longer any need for a non-standard bootstrap Jar. -- Paul Cager Wed, 7 Feb 2007 11:34:45 +0000 JavaCC was built using JavaCC (bootstrapped). The upstream bootstrap/javacc.jar classes were built using a non-free compiler and closed-source classes from previous JavaCC version. This is the reason why it has been replaced by a freshly rebuilt javacc.jar. Upstream javacc.jar has been removed from upstream source (javacc-3.2.orig) so as to ensure free-software (DFSG) compliance. This is the reason why javacc-3.2 was renamed javacc-3.2+0 Nicolas Sabouret -- Wed Feb 18 19:05:57 CET 2004 debian/control0000644000000000000000000000362312154117357010603 0ustar Source: javacc Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Emmanuel Bourg Build-Depends: ant, debhelper (>= 7), cdbs (>= 0.4.5.3), default-jdk Build-Depends-Indep: ant-optional, libxalan2-java, docbook-to-man, junit, maven-repo-helper Standards-Version: 3.9.4 Homepage: http://javacc.java.net Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/javacc Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/javacc Package: javacc Architecture: all Depends: default-jre-headless | java1-runtime-headless | java2-runtime-headless, ${misc:Depends} Suggests: javacc-doc Description: Parser generator for use with Java Java Compiler-Compiler (JavaCC) is (according to sun) "the most popular parser generator" for use with Java [tm] applications. . A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc. Package: javacc-doc Architecture: all Section: doc Depends: default-jdk-doc, ${misc:Depends} Suggests: javacc Description: Documentation for the JavaCC Parser Generator Documentation and examples for JavaCC parser generator. . Java Compiler-Compiler (JavaCC) is (according to sun) "the most popular parser generator" for use with Java [tm] applications. . A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc. debian/orig-tar.sh0000755000000000000000000000060012154117357011253 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' TAR=javacc_$2.orig.tar.gz DIR=javacc-$2.orig # clean up the upstream tarball tar xzf $3 mv javacc $DIR tar -czf $TAR --exclude 'junit.jar' $DIR rm -rf $3 $DIR mv $TAR .. # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/copyright0000644000000000000000000000670612154117357011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: JavaCC Upstream-Contact: Sreenivasa Viswanadha Source: http://javacc.java.net Files: * Copyright: 2005-2006, Kees Jan Koster kjkoster@kjkoster.org 2006, Sreenivasa Viswanadha 2006-2007, Sun Microsystems, Inc. 2006, Tim Pizey 2007, Paul Cager License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Sun Microsystems, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2003, Nicolas Sabouret License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Sun Microsystems, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/dirs0000644000000000000000000000002711064734532010056 0ustar usr/bin usr/share/java debian/rules0000755000000000000000000000235012154117357010254 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ') JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar $(ANT_HOME)/lib/ant-junit.jar junit DEB_ANT_BUILD_TARGET := jar DEB_ANT_CLEAN_TARGET := realclean DEB_ANT_CHECK_TARGET := unittest DEB_ANT_BUILDFILE := build.xml DEB_ANT_ARGS := -Dversion=$(DEB_UPSTREAM_VERSION) clean:: mh_clean rm -f bin/javacc.1 binary-post-install/$(PACKAGE):: mh_installpom -p$(PACKAGE) -e$(DEB_UPSTREAM_VERSION) pom.xml mh_installjar -p$(PACKAGE) -e$(DEB_UPSTREAM_VERSION) -l pom.xml \ bin/lib/$(PACKAGE).jar docbook-to-man debian/manpage.sgml >bin/javacc.1 dh_installman bin/javacc.1 dh_install bin/javacc bin/jjdoc bin/jjtree usr/bin dh_link usr/share/man/man1/javacc.1 usr/share/man/man1/jjtree.1 dh_link usr/share/man/man1/javacc.1 usr/share/man/man1/jjdoc.1 binary-post-install/$(PACKAGE)-doc:: dh_install -p$(PACKAGE)-doc www/doc usr/share/doc/javacc dh_install -p$(PACKAGE)-doc examples usr/share/doc/javacc get-orig-source: uscan --force-download --rename --repack debian/changelog0000644000000000000000000001156312154117357011054 0ustar javacc (5.0-5) unstable; urgency=low * Fixed a regression causing the encountered/expected token list to be empty (see https://java.net/jira/browse/JAVACC-244) * Fixed the watch file * Enabled the unit tests * debian/control: - Removed Michael Koch from the Uploaders list (Closes: #654030) - Updated Standards-Version to 3.9.4 - Use canonical URLs for the Vcs-* fields - Replaced the dependency of the documentation package on classpath-doc with default-jre-doc * Switched to quilt for managing the patches * Added the missing patch descriptions * debian/rules: Added a clean target to allow rebuilds * debian/orig-tar.sh: Install the tarball in the parent directory * debian/copyright: Updated to the Copyright Format 1.0 -- Emmanuel Bourg Thu, 06 Jun 2013 16:30:34 +0200 javacc (5.0-4) unstable; urgency=low [ Torsten Werner ] * Remove Paul from Uploaders list. [ David Paleino ] * debian/maven.rules added, fixes dependency on junit in the POM file -- Torsten Werner Sat, 01 May 2010 00:48:42 +0200 javacc (5.0-3) unstable; urgency=low * Team upload. * Switch to source format 3.0. * Install pom.xml with maven-repo-helper. (Closes: #576323) * Update Standards-Version: 3.8.4. -- Torsten Werner Sat, 01 May 2010 00:35:37 +0200 javacc (5.0-2) unstable; urgency=low [ Onkar Shinde ] * debian/control - Change -runtime dependencies to -runtime-headless. -- Debian Java Maintainers Fri, 18 Dec 2009 10:53:19 +0530 javacc (5.0-1) unstable; urgency=low [ Matthias Klose ] * (Build-)depend on default-jre/-jdk (Closes: #526280). [ Michael Koch ] * New upstream release. (Closes: #506465). * Make all packages Depends on ${misc:Depends}. * In descriptions replace 'Compiler Compiler' with 'Compiler-Compiler' to not confuse spellchecker. * Moved package to section 'java'. * Added myself to Uploaders. * Updated Standards-Version to 3.8.3. -- Michael Koch Thu, 24 Sep 2009 21:23:57 +0200 javacc (4.0+cvs20080403-1) unstable; urgency=low [ Paul Cager ] * New snapshot of upstream code (CVS as at 2008-04-03). * Marked compatible with standards version 3.7.3. * Added watch file. * Converted to use CDBS (pkg-java standard). * Corrected format of debian/copyright. (fixes lintian copyright-without-copyright-notice). [ Michael Koch ] * Removed Nicolas Sabouret from Uploaders. Closes: #464327. * Made URL in Homepage field a valid URL. -- Paul Cager Thu, 03 Apr 2008 23:59:04 +0100 javacc (4.0+cvs20070207-3) unstable; urgency=low * Missing build-depends on junit. (Closes: #424481) -- Paul Cager Wed, 16 May 2007 09:48:03 +0100 javacc (4.0+cvs20070207-2) unstable; urgency=low * Migrate experimental version to unstable. -- Paul Cager Sun, 15 Apr 2007 19:55:43 +0100 javacc (4.0+cvs20070207-1) experimental; urgency=low * New upstream release * Now true BSD license (Closes: #276302) * Added myself to co-maintainers * Upgraded to standards version 3.7.2 * Bumped debhelper to version 5 * Uses java-gcj compiler, rather than kaffe * Moved ant from build-depends-indep to build-depends as required by java-policy (and lintian) * Created watch file * Split into separate "-doc" binary package * Added a doc-base * Converted diff.gz patches into dpatch format -- Paul Cager Wed, 7 Feb 2007 11:34:45 +0000 javacc (3.2+0-3) unstable; urgency=low * ant transition (closes: #331648). * changed the dependency to kaffe | java-runtime | java1-runtime | java2-runtime, this way, any virtual machine can be used to run javacc. I did not change the build-dependency because it's not needed (closes: #325579). * Thanks to Arnaud Vandyck for the patch -- Nicolas Sabouret Thu, 13 Oct 2005 14:24:47 +0200 javacc (3.2+0-2) unstable; urgency=low * Build-depends on libant1.6-java (closes: #300935) -- Nicolas Sabouret Sat, 14 May 2005 22:32:25 +0200 javacc (3.2+0-1) unstable; urgency=low * Build-depends on docbook-to-man * Moved to main (closes: #225484) See README.Debian for more information Thanks to Josh Triplett for his patch -- Nicolas Sabouret Wed, 26 Nov 2003 10:02:22 +0100 javacc (3.2-1) unstable; urgency=low * New upstream release * Section: contrib/devel (closes: #202773) * Depends: java-virtual-machine, java1-runtime (closes: #202833) * Patched bin files (closes: #202834) -- Nicolas Sabouret Fri, 29 Aug 2003 11:44:40 +0200 javacc (3.1-1) unstable; urgency=low * Initial Release (closes: #201350) -- Nicolas Sabouret Tue, 15 Jul 2003 10:21:45 +0200 debian/source/0000755000000000000000000000000011674373044010477 5ustar debian/source/format0000644000000000000000000000001411674373044011705 0ustar 3.0 (quilt) debian/maven.rules0000644000000000000000000000002711674373044011360 0ustar junit * * s/3\..*/3.x/