add --directory option to wmlxgettext...

so that running out of source tree works as expected
This commit is contained in:
Yann Dirson 2004-10-21 19:54:39 +00:00
parent 7f45b7b9b8
commit 490c64ac95
9 changed files with 13 additions and 9 deletions

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -114,7 +114,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--keyword=_ --keyword=N_ \
--output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
if test -r FINDCFG ;\
then $(top_srcdir)/utils/wmlxgettext \
then $(top_srcdir)/utils/wmlxgettext --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
if test -f $(DOMAIN).wml.po ; then \

View file

@ -8,12 +8,16 @@
use strict;
use File::Basename;
use POSIX qw(strftime);
use Getopt::Long;
our $toplevel = '.';
GetOptions ('directory=s' => \$toplevel);
our $module = dirname ($0) . "/wmltrans.pm";
eval "require \"$module\";";
our ($str,$translatable,$line,%messages);
chdir "../..";
chdir $toplevel;
foreach my $file (@ARGV) {
open (FILE, "<$file") or die "cannot read from $file";
my $readingattack = 0;