* Mentioned startup options in manpage, thanks to LI Daobing (closes: #378190).
authorgregor herrmann <gregoa@debian.org>
Fri, 14 Jul 2006 11:06:41 +0000 (11:06 -0000)
committergregor herrmann <gregoa@debian.org>
Fri, 14 Jul 2006 11:06:41 +0000 (11:06 -0000)
* Change wrapper script to always pass "-n" if called with "-v" in order
  to make jabref only print the version number and quit afterwards with
  "-v". Thanks to LI Daobing (closes: #378189).

debian/changelog
debian/jabref.1
jabref

index 8760ae95e7d0915c0a7f56e2ce53e91c453371ab..e2216a40e159402071e47d05f099fe89bc74d3e3 100644 (file)
@@ -1,8 +1,12 @@
 jabref (2.0.1+2.1b2-3) unstable; urgency=low
 
   * Convert debian/copyright to UTF-8.
+  * Mentioned startup options in manpage, thanks to LI Daobing (closes: #378190).
+  * Change wrapper script to always pass "-n" if called with "-v" in order
+    to make jabref only print the version number and quit afterwards with
+    "-v". Thanks to LI Daobing (closes: #378189).
 
- -- gregor herrmann <gregor+debian@comodo.priv.at>  Sun,  9 Jul 2006 00:17:44 +0200
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Fri, 14 Jul 2006 12:58:27 +0200
 
 jabref (2.0.1+2.1b2-2) unstable; urgency=low
 
index 9092a084761f876d61a64503bae95159b30ea1f0..9974f1f50ca7761d7ce89b15e2ed0cc283d36a56 100644 (file)
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH JABREF 1 "September  1, 2005"
+.TH JABREF 1 "July 14, 2006"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -18,7 +18,7 @@
 .SH NAME
 jabref \- graphical frontend to manage BibTeX databases
 .SH SYNOPSIS
-.B jabref
+.B jabref [options] [bibtex\-file]
 .SH DESCRIPTION
 .\" TeX users may be more comfortable with the \fB<whatever>\fP and
 .\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
@@ -28,6 +28,40 @@ standard LaTeX bibliography reference format. JabRef is build to be
 platform independent (requires Java 1.4.2 or newer). It merges and extends
 the functionalities of BibKeeper (Morten O. Alver) and JBibtexManager
 (Nizar Batada)
+.SH OPTIONS
+.TP
+\fB\-a\fR, \fB\-\-aux\fR=<STRING>
+Subdatabase from aux: file[.aux],new[.bib]
+.TP
+\fB\-o\fR, \fB\-\-output\fR=<STRING>
+Output or export file: filename[,export format]
+.TP
+\fB\-x\fR, \fB\-\-prexp\fR=<STRING>
+Export preferences to file
+.TP
+\fB\-i\fR, \fB\-\-import\fR=<STRING>
+Import file: filename[,import format]
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Displays version information.
+.TP
+\fB\-\-importToOpen\fR=<STRING>
+Import to open tab
+.TP
+\fB\-b\fR, \fB\-\-blank\fR=<BOOLEAN>
+Do not open any files at startup
+.TP
+\fB\-p\fR, \fB\-\-primp\fR=<STRING>
+Import preferences from file
+.TP
+\fB\-h\fR, \fB\-\-help\fR=<BOOLEAN>
+Display help on command line options
+.TP
+\fB\-n\fR, \fB\-\-nogui\fR=<BOOLEAN>
+No GUI. Only process command line options.
+.TP
+\fB\-l\fR, \fB\-\-loads\fR=<BOOLEAN>
+Load session
 .SH SEE ALSO
 the included help
 .br
diff --git a/jabref b/jabref
index f9a96c334691380861d33700e74d85211fdb0d0e..c2c254864cc38088602eb292dc0e12fbb809b111 100644 (file)
--- a/jabref
+++ b/jabref
@@ -1,3 +1,7 @@
 #!/bin/sh
 
-java -jar /usr/share/java/jabref.jar "$@"
+if echo "$@" | grep -q "\-v" - ; then
+       EXTRA="-n"
+fi
+
+java -jar /usr/share/java/jabref.jar "$@" "$EXTRA"