[javacc] 03/03: Packaging cleanup do not use -Djavacc-jarname=javacc.jar any more, but install javacc-<version>.jar in by mh_installpoms Move start-scripts to debian directory, avoiding patch to source code

Benjamin Mesing ben at moszumanska.debian.org
Sun Dec 11 18:31:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

ben pushed a commit to branch debian_6_1_3
in repository javacc.

commit f70ec60b69a40d4162f12c253c2789f09f23ede5
Author: Benjamin Mesing <bensmail at gmx.net>
Date:   Sat Dec 10 15:45:32 2016 +0100

    Packaging cleanup do not use  -Djavacc-jarname=javacc.jar any more,
    but install javacc-<version>.jar in by mh_installpoms
    Move start-scripts to debian directory, avoiding patch to source code
---
 debian/bin/javacc     |  5 ++++
 debian/bin/javacc.1   | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/bin/jjdoc      |  5 ++++
 debian/bin/jjtree     |  5 ++++
 debian/javacc.install |  6 ++---
 debian/javacc.poms    |  2 +-
 debian/patches/series |  1 -
 debian/rules          |  6 ++---
 8 files changed, 92 insertions(+), 8 deletions(-)

diff --git a/debian/bin/javacc b/debian/bin/javacc
new file mode 100644
index 0000000..3e9e6af
--- /dev/null
+++ b/debian/bin/javacc
@@ -0,0 +1,5 @@
+#!/bin/sh
+JAR=/usr/share/java/javacc.jar
+
+java -classpath "$JAR" javacc "$@"
+
diff --git a/debian/bin/javacc.1 b/debian/bin/javacc.1
new file mode 100644
index 0000000..035a514
--- /dev/null
+++ b/debian/bin/javacc.1
@@ -0,0 +1,70 @@
+.TH "JAVACC" "1" 
+.SH "NAME" 
+javacc \(em a java compiler compiler 
+.SH "SYNOPSIS" 
+.PP 
+\fBjavacc\fR [option-settings]  [inputfile]  
+.PP 
+\fBjjtree\fR [option-settings]  [inputfile]  
+.PP 
+\fBjjdoc\fR [inputfile]  
+.SH "DESCRIPTION" 
+.PP 
+This manual page documents briefly the 
+\fBjavacc\fR, \fBjjtree\fR and \fBjjdoc\fR commands. 
+.PP 
+This manual page was written for the \fBDebian\fP distribution 
+because the original program does not have a manual page. 
+.PP 
+\fBjavacc\fR is a parser generator for use with Java 
+.PP 
+\fBjjtree\fR is a tree builder for javacc 
+.PP 
+\fBjjdoc\fR is a documentation generator javacc 
+.SH "OPTIONS" 
+.PP 
+\fBjavacc\fR, \fBjjtree\fR or 
+\fBjjdoc\fR without any argument prints a small help 
+with the list of available options. 
+.PP 
+"option-settings" is a sequence of settings separated 
+by spaces. Each option setting must be of one of the following forms: 
+.PP 
+\fB-optionname=value\fP (e.g. \-STATIC=false) 
+.PP 
+\fB-optionname:value\fP (e.g. \-STATIC:false) 
+.PP 
+\fB-optionname\fP       (equivalent to \-optionname=true.  e.g., \-STATIC) 
+.PP 
+\fB-NOoptionname\fP     (equivalent to \-optionname=false. e.g., \-NOSTATIC) 
+.PP 
+Option settings are not case-sensitive, so one can say 
+\fB-nOsTaTiC\fP instead of \fB-NOSTATIC\fP. 
+Option values must be appropriate for the corresponding option, and 
+must be either an integer or a string value. 
+.PP 
+For a list of available options, please refer to the command's 
+internal help. 
+.SH "EXAMPLE" 
+.PP 
+.ft B 
+% javacc \-STATIC=false \-LOOKAHEAD:2 \-debug_parser mygrammar.jj 
+.ft 
+.PP 
+.ft B 
+% jjtree \-STATIC=false mygrammar.jjt 
+.ft 
+.PP 
+.ft B 
+% jjdoc mygrammar.jj 
+.ft 
+.SH "AUTHOR" 
+.PP 
+This manual page was written by Nicolas Sabouret nico at debian.org for 
+the \fBDebian\fP 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. 
+.\" created by instant / docbook-to-man 
diff --git a/debian/bin/jjdoc b/debian/bin/jjdoc
new file mode 100644
index 0000000..2cfe441
--- /dev/null
+++ b/debian/bin/jjdoc
@@ -0,0 +1,5 @@
+#!/bin/sh
+JAR=/usr/share/java/javacc.jar
+
+java -classpath "$JAR" jjdoc "$@"
+
diff --git a/debian/bin/jjtree b/debian/bin/jjtree
new file mode 100644
index 0000000..38ea194
--- /dev/null
+++ b/debian/bin/jjtree
@@ -0,0 +1,5 @@
+#!/bin/sh
+JAR=/usr/share/java/javacc.jar
+
+java -classpath "$JAR" jjtree "$@"
+
diff --git a/debian/javacc.install b/debian/javacc.install
index b5b8da7..cfddfc3 100644
--- a/debian/javacc.install
+++ b/debian/javacc.install
@@ -1,3 +1,3 @@
-bin/javacc      /usr/bin
-bin/jjdoc       /usr/bin
-bin/jjtree      /usr/bin
+debian/bin/javacc      /usr/bin
+debian/bin/jjdoc       /usr/bin
+debian/bin/jjtree      /usr/bin
diff --git a/debian/javacc.poms b/debian/javacc.poms
index 6502c76..9b1acbd 100644
--- a/debian/javacc.poms
+++ b/debian/javacc.poms
@@ -1 +1 @@
-pom.xml --java-lib -e6.1.3 --artifact=target/javacc.jar
+pom.xml --java-lib -e6.1.3 --artifact=target/javacc-6.1.3.jar
diff --git a/debian/patches/series b/debian/patches/series
index 8a32e2b..e69de29 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +0,0 @@
-executables.diff
diff --git a/debian/rules b/debian/rules
index 8a8e036..8e0d342 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,14 +6,14 @@ VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
 	dh $@ --with maven-repo-helper
 
 override_dh_auto_build:
-	dh_auto_build --  -Djavacc-jarname=javacc.jar jar
+	dh_auto_build -- jar
 	docbook-to-man debian/manpage.sgml >bin/javacc.1
 
 override_dh_auto_clean:
-	dh_auto_build -- -Djavacc-jarname=javacc.jar clean clean_generated_sources
+	dh_auto_build -- clean clean_generated_sources
 	
 override_dh_auto_test:
-	dh_auto_build -- -Djavacc-jarname=javacc.jar unittest
+	dh_auto_build -- unittest
 
 get-orig-source:
 	uscan --download-current-version --force-download --rename --repack --compression xz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/javacc.git



More information about the pkg-java-commits mailing list