From 532468197e7b09fe4d5abb03c4ad1e8803136df1 Mon Sep 17 00:00:00 2001 From: fitzsim Date: Wed, 8 Feb 2006 05:51:16 +0000 Subject: 2006-02-08 Thomas Fitzsimmons * 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/trunk@110739 138bc75d-0d04-0410-961f-82ee72b054a4 --- fastjar/jartool.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'fastjar/jartool.c') diff --git a/fastjar/jartool.c b/fastjar/jartool.c index a749f80af63..7faa518a2e1 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) @@ -2249,6 +2259,8 @@ Store many files together in a single `jar' file.\n\ printf("\ -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\ "); -- cgit v1.2.1