[med-svn] [cgview] 04/10: Adapt usage hints to the fact that there is /usr/bin/cgview

Andreas Tille tille at debian.org
Fri Nov 27 18:20:40 UTC 2015


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

tille pushed a commit to branch master
in repository cgview.

commit 8d8550367eacff0c34b7c5e95e99e5d761372ddd
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 27 19:07:37 2015 +0100

    Adapt usage hints to the fact that there is /usr/bin/cgview
---
 debian/patches/polish_usage_message.patch | 64 +++++++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 65 insertions(+)

diff --git a/debian/patches/polish_usage_message.patch b/debian/patches/polish_usage_message.patch
new file mode 100644
index 0000000..d7d899a
--- /dev/null
+++ b/debian/patches/polish_usage_message.patch
@@ -0,0 +1,64 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 27 Nov 2015 09:31:44 +0100
+Description: Adapt usage hints to the fact that there is /usr/bin/cgview
+
+--- a/src/ca/ualberta/stothard/cgview/CgviewIO.java
++++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java
+@@ -105,7 +105,7 @@ public class CgviewIO implements CgviewC
+     private final static String EXTERNAL_LEGEND = "legend.png";
+ 
+     private static void printUsage() {
+-        System.err.println("usage: java -jar cgview.jar [OPTION]...");
++        System.err.println("usage: cgview [OPTION]...");
+         System.err.println("-A <integer> Specifies a label font size.");
+         System.err.println("-c <integer> Specifies the base to center on when zooming.");
+         System.err.println("-D <integer> Specifies a legend font size.");
+@@ -129,8 +129,8 @@ public class CgviewIO implements CgviewC
+         System.err.println("-W <integer> The width of the map.");
+         System.err.println("-x <string> Comma separated zoom values for image series.");
+         System.err.println("-z <real> The factor to zoom in by.");
+-        System.err.println("Example usage: java -jar cgview.jar -f png -i cybercell.xml -o my_picture.png -h view_image.html.");
+-        System.err.println("Example usage: java -jar cgview.jar -i cybercell.xml -s directory_for_series -e true.");
++        System.err.println("Example usage: cgview -f png -i cybercell.xml -o my_picture.png -h view_image.html.");
++        System.err.println("Example usage: cgview -i cybercell.xml -s directory_for_series -e true.");
+     }
+ 
+     /**
+--- a/README
++++ b/README
+@@ -33,11 +33,11 @@ To test CGView, switch to the cgview dir
+ command, which generates a PNG image of the map described in the
+ cybercell.xml file:
+ 
+->java -jar cgview.jar -i cybercell.xml -o cybercell.png -f png
++> cgview -i cybercell.xml -o cybercell.png -f png
+ ----------------------------------------------------------- 
+ Running CGView:
+ 
+-usage: java -jar cgview.jar [options]
++usage: cgview [options]
+ 
+ Where the options are:
+ 
+@@ -136,7 +136,7 @@ will generate a PNG image file called "m
+ called "view_image.html" will also be created. This HTML file will
+ contain the "my_picture.png" image:
+ 
+-java -jar cgview.jar -f png -i cybercell.xml -o my_picture.png -h
++cgview -f png -i cybercell.xml -o my_picture.png -h
+ view_image.html
+ 
+ 2. The command below will read an XML file called "cybercell.xml", and
+@@ -146,10 +146,10 @@ explored by loading the file "index.html
+ "directory_for_series" directory. Note that generating an image series
+ can take more than an hour.
+ 
+-java -jar cgview.jar -i cybercell.xml -s directory_for_series -x true
++cgview -i cybercell.xml -s directory_for_series -x true
+ 
+ Note: If you obtain an "Out of Memory" error when drawing a very large
+ map, try increasing Java's heap size using the -Xmx option. For
+ example, use the command: 
+ 
+-java -jar -Xmx500m cgview.jar -i cybercell.xml -o cybercell.png -f png
++java -jar -Xmx500m /usr/share/java/cgview.jar -i cybercell.xml -o cybercell.png -f png
diff --git a/debian/patches/series b/debian/patches/series
index 43bb5cd..eea3296 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 manifesto_pointing_to_debian_jars.patch
 fix_batic-svggen_SVGGraphics2D_call.patch
+polish_usage_message.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cgview.git



More information about the debian-med-commit mailing list