debian/ 0000755 0000000 0000000 00000000000 12154117451 007167 5 ustar debian/watch 0000644 0000000 0000000 00000000217 12154117357 010225 0 ustar version=3
opts=dversionmangle=s/\+cvs.*// \
https://java.net/projects/javacc/downloads .*javacc-([\d\.]*)src.tar.gz debian debian/orig-tar.sh
debian/manpage.sgml 0000644 0000000 0000000 00000012101 11064734532 011462 0 ustar 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-settingsinputfilejjtreeoption-settingsinputfilejjdocinputfileDESCRIPTIONThis 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 Javajjtree is a tree builder for &dhpackagejjdoc is a documentation generator &dhpackageOPTIONS&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.jjAUTHORThis 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/ 0000755 0000000 0000000 00000000000 12154117357 010623 5 ustar debian/patches/javacctarget.patch 0000644 0000000 0000000 00000000573 12154117357 014307 0 ustar 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.patch 0000644 0000000 0000000 00000001522 12154117357 014150 0 ustar 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/series 0000644 0000000 0000000 00000000063 12154117357 012037 0 ustar executables.patch
javacctarget.patch
ParseGen.diff
debian/patches/ParseGen.diff 0000644 0000000 0000000 00000004210 12154117357 013156 0 ustar 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/compat 0000644 0000000 0000000 00000000002 11064734532 010371 0 ustar 5
debian/README.Debian 0000644 0000000 0000000 00000001403 11064734532 011232 0 ustar 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/control 0000644 0000000 0000000 00000003623 12154117357 010603 0 ustar 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.sh 0000755 0000000 0000000 00000000600 12154117357 011253 0 ustar #!/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/copyright 0000644 0000000 0000000 00000006706 12154117357 011140 0 ustar 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/dirs 0000644 0000000 0000000 00000000027 11064734532 010056 0 ustar usr/bin
usr/share/java
debian/rules 0000755 0000000 0000000 00000002350 12154117357 010254 0 ustar #!/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/changelog 0000644 0000000 0000000 00000011563 12154117357 011054 0 ustar 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/ 0000755 0000000 0000000 00000000000 11674373044 010477 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 11674373044 011705 0 ustar 3.0 (quilt)
debian/maven.rules 0000644 0000000 0000000 00000000027 11674373044 011360 0 ustar junit * * s/3\..*/3.x/