diff --git a/jflex.1 b/jflex.1 new file mode 100644 index 0000000..be025d3 --- /dev/null +++ b/jflex.1 @@ -0,0 +1,57 @@ +.TH JFLEX "1" "October 2005" +.SH NAME +jflex \- a lexical analyzer generator (also known as scanner generator) for Java +.SH SYNOPSIS +.B jflex +\fI \fR +.SH DESCRIPTION +JFlex is a lexical analyzer generator (also known as scanner generator) for Java(tm), written in Java(tm). It is also a rewrite of the very useful tool JLex. JFlex is designed to work together with the LALR parser generator CUP, and the Java modification of Berkeley Yacc BYacc/J. It can also be used together with other parser generators like ANTLR or as a standalone tool. + +.SH OPTIONS +.TP +\fB\-d\fR +write generated file to +.TP +\fB\-\-skel\fR +use external skeleton +.TP +\fB\-\-switch\fR, \fB\-\-table\fR, \fB\-\-pack\fR +set default code generation method +.TP +\fB\-\-jlex\fR +strict JLex compatibility +.TP +\fB\-\-nomin\fR +skip minimization step +.TP +\fB\-\-nobak\fR +don't create backup files +.TP +\fB\-\-dump\fR +display transition tables +.TP +\fB\-\-dot\fR +write graphviz .dot files for the generated automata (alpha) +.TP +\fB\-\-verbose\fR, \fB\-v\fR +display generation progress messages (default) +.TP +\fB\-\-quiet\fR, \fB\-q\fR +display errors only +.TP +\fB\-\-time\fR +display generation time statistics +.TP +\fB\-\-version\fR +print the version number of this copy of jflex +.TP +\fB\-\-info\fR +print system + JDK information +.TP +\fB\-\-help\fR, \fB\-h\fR +print this message +.PP + +.SH AUTHOR +This manual page was written by Wolfgang Baer , +for the Debian project (but may be used by others). diff --git a/jflex.spec b/jflex.spec index f7cd6f2..8468cd3 100644 --- a/jflex.spec +++ b/jflex.spec @@ -40,6 +40,7 @@ Source0: http://jflex.de/%{name}-%{version}.tar.gz Source1: http://repo2.maven.org/maven2/de/jflex/jflex/1.4.3/jflex-1.4.3.pom Source2: %{name}.desktop Source3: %{name}.png +Source4: %{name}.1 Patch0: jflex-build_xml.patch Patch1: jflex-junit-incompatibility.patch @@ -122,6 +123,10 @@ cp -p COPYRIGHT %{buildroot}%{_docdir}/%{name}-%{version} # wrapper script for direct execution %jpackage_script JFlex.Main "" "" jflex:java_cup jflex true +# manpage +install -dm 755 %{buildroot}%{_mandir}/man1 +install -pm 644 %{SOURCE4} %{buildroot}%{_mandir}/man1 + # .desktop + icons desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} install -Dpm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png @@ -138,6 +143,7 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png @@ -148,6 +154,7 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : %changelog * Wed May 2 2012 Mikolaj Izdebski - 0:1.4.3-9 - Fix license tag +- Import manpage from Debian's jflex 1.4.1-3 (GPL+) * Thu Apr 19 2012 Jaromir Capik - 0:1.4.3-8 - Desktop file generated