diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-08 05:55:47 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-08 05:55:47 +0000 |
commit | fc3a7750879cb0486f5512ff86a93d4b843264c9 (patch) | |
tree | 69ac0b8aeb09d246a1a706f669322c4154e4efd1 | |
parent | 0f5e95d01dd943dca52572d5ed6a582f3a628196 (diff) | |
download | gcc-fc3a7750879cb0486f5512ff86a93d4b843264c9.tar.gz |
2006-02-08 Thomas Fitzsimmons <fitzsim@redhat.com>
* jartool.h (ACTION_INDEX): New macro.
* jartool.c (main): Handle -i option.
* fastjar.texi (Invoking fastjar): Add description of -i option.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch@110740 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | fastjar/ChangeLog | 6 | ||||
-rw-r--r-- | fastjar/fastjar.texi | 4 | ||||
-rw-r--r-- | fastjar/jartool.c | 14 | ||||
-rw-r--r-- | fastjar/jartool.h | 1 |
4 files changed, 24 insertions, 1 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog index 1e63ebf0f66..bcda3832637 100644 --- a/fastjar/ChangeLog +++ b/fastjar/ChangeLog @@ -1,3 +1,9 @@ +2006-02-08 Thomas Fitzsimmons <fitzsim@redhat.com> + + * jartool.h (ACTION_INDEX): New macro. + * jartool.c (main): Handle -i option. + * fastjar.texi (Invoking fastjar): Add description of -i option. + 2006-01-31 Tom Tromey <tromey@redhat.com> * jartool.c (version): Use 2006. diff --git a/fastjar/fastjar.texi b/fastjar/fastjar.texi index a40aa43e116..d39f4a9d7f3 100644 --- a/fastjar/fastjar.texi +++ b/fastjar/fastjar.texi @@ -150,6 +150,10 @@ in the GCC version. @item -M Do not create a manifest file for the entries. +@item -i +Generate an index of the packages in this jar and its Class-Path +(currently a no-op for jar command-line compatibility). + @item -0 Store only; use no ZIP compression. diff --git a/fastjar/jartool.c b/fastjar/jartool.c index 0aef897e408..1295c01dbd2 100644 --- a/fastjar/jartool.c +++ b/fastjar/jartool.c @@ -321,7 +321,7 @@ ub4 end_of_entries; #define OPT_HELP LONG_OPT (0) /* This holds all options. */ -#define OPTION_STRING "-ctxuvVf:m:C:0ME@" +#define OPTION_STRING "-ctxuvVf:m:C:0MiE@" /* Define the MANIFEST content here to have it easier with calculations below. This is for the case we create an empty MANIFEST.MF. */ @@ -407,6 +407,9 @@ int main(int argc, char **argv) case 'M': manifest = FALSE; break; + case 'i': + action = ACTION_INDEX; + break; case OPT_HELP: help(argv[0]); @@ -424,6 +427,13 @@ int main(int argc, char **argv) } } + if(verbose && action == ACTION_INDEX) + fprintf(stderr, "Warning: '-i' option is currently a no-op\n"); + + /* FIXME: implement -i option. */ + if(action == ACTION_INDEX) + exit(0); + /* We might have seen `--'. In this case we want to make sure that all following options are handled as file names. */ while (optind < argc) @@ -2247,6 +2257,8 @@ Store many files together in a single `jar' file.\n\ --help print this help, then exit\n\ -m FILE include manifest information from specified manifest file\n\ -M Do not create a manifest file for the entries\n\ + -i generate an index of the packages in this jar\n\ + and its Class-Path (currently unimplemented)\n\ -v generate verbose output on standard output\n\ -V, --version display version information\n\ "); diff --git a/fastjar/jartool.h b/fastjar/jartool.h index 76abda1bddc..e684d97e3a2 100644 --- a/fastjar/jartool.h +++ b/fastjar/jartool.h @@ -63,6 +63,7 @@ #define ACTION_EXTRACT 2 #define ACTION_UPDATE 3 #define ACTION_LIST 4 +#define ACTION_INDEX 5 #define TRUE 1 #define FALSE 0 |