Bug#510828: [libjmac-java] Add a command-line launcher script for easier invocation

Roman Mamedov roman at rm.pp.ru
Mon Jan 5 07:47:45 UTC 2009


Package: libjmac-java
Version: 1.74-2
Severity: wishlist
Tags: patch

Currently, JMAC can be invoked as a command line tool using the syntax:
$ java -jar /usr/share/java/jmac.jar <command> <infile> [outfile]

I propose adding a simple launcher script into /usr/bin/, called "jmac"
with the following contents:

---
#!/bin/sh

if [ -n "$3" ]
then
  java -jar /usr/share/java/jmac.jar $1 "$2" "$3"
else
  java -jar /usr/share/java/jmac.jar $1 "$2"
fi
---

That way, jmac could be used as a command-line tool simply by:
$ jmac <command> <infile> [outfile]

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.28-rm

Debian Release: 5.0
  500 testing         apt-proxy.i4 

--- Package information. ---
Depends              (Version) | Installed
==============================-+-===========
java-gcj-compat                | 
 OR java1-runtime              | 
 OR java2-runtime              | 




-- 
With respect,
Roman





More information about the pkg-java-maintainers mailing list