diff options
author | jbj <devnull@localhost> | 1999-02-21 03:57:57 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-02-21 03:57:57 +0000 |
commit | 4db26fd478db2574b825f848020818fc4ce20a00 (patch) | |
tree | b09c44d99d96f557711444635502f33b84bfab3a /tools | |
parent | 6d53fa695bf28941fce2ad57a8ce43e962945f49 (diff) | |
download | rpm-4db26fd478db2574b825f848020818fc4ce20a00.tar.gz rpm-4db26fd478db2574b825f848020818fc4ce20a00.tar.bz2 rpm-4db26fd478db2574b825f848020818fc4ce20a00.zip |
Permit group extraction from command line.
CVS patchset: 2821
CVS date: 1999/02/21 03:57:57
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rpmgettext.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/rpmgettext.c b/tools/rpmgettext.c index 6cd48965d..56510ae18 100644 --- a/tools/rpmgettext.c +++ b/tools/rpmgettext.c @@ -36,6 +36,7 @@ char *outputdir = "/tmp/OUT"; int nlangs = 0; char *onlylang[128]; int metamsgid = 0; +int nogroups = 1; int gentran = 0; @@ -303,6 +304,7 @@ gettextfile(FD_t fd, const char *file, FILE *fp, int *poTags) continue; /* XXX skip untranslated RPMTAG_GROUP for now ... */ + if (nogroups) { switch (*tp) { case RPMTAG_GROUP: if (count <= 1) @@ -311,6 +313,7 @@ gettextfile(FD_t fd, const char *file, FILE *fp, int *poTags) default: break; } + } /* XXX generate catalog for single language */ onlymsgstr = NULL; @@ -975,7 +978,7 @@ main(int argc, char **argv) program_name = basename(argv[0]); - while((c = getopt(argc, argv, "deEMl:I:O:Tv")) != EOF) + while((c = getopt(argc, argv, "degEMl:I:O:Tv")) != EOF) switch (c) { case 'd': debug++; @@ -1001,6 +1004,9 @@ main(int argc, char **argv) case 'M': metamsgid++; break; + case 'g': + nogroups = 0; + break; case 'v': verbose++; break; |