mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
see plug-ins/perl/Changes
This commit is contained in:
parent
e836901c83
commit
c655dfcd35
|
@ -130,6 +130,7 @@ examples/billboard
|
||||||
examples/blended2
|
examples/blended2
|
||||||
pxgettext
|
pxgettext
|
||||||
po/ChangeLog
|
po/ChangeLog
|
||||||
|
po/Makefile.PL
|
||||||
po/de.po
|
po/de.po
|
||||||
po/it.po
|
po/it.po
|
||||||
po/cs.po
|
po/cs.po
|
||||||
|
|
|
@ -220,24 +220,6 @@ force_uninstall_from_perldirs ::
|
||||||
force_uninstall_from_sitedirs ::
|
force_uninstall_from_sitedirs ::
|
||||||
\$(PERL) -MExtUtils::Install -e 'uninstall(\$\$ARGV[0],1,0)' ".$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist')."
|
\$(PERL) -MExtUtils::Install -e 'uninstall(\$\$ARGV[0],1,0)' ".$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist')."
|
||||||
|
|
||||||
install-po:
|
|
||||||
";
|
|
||||||
|
|
||||||
print "Portable message object...";
|
|
||||||
if ($MSGFMT =~ /./) {
|
|
||||||
for (<po/*.po>) {
|
|
||||||
my($po)=m!/(.*)\.po$!; #/# for brainy vim
|
|
||||||
print " $po";
|
|
||||||
$postamble .= " \$(MKPATH) \$(datadir)/locale/$po/LC_MESSAGES\n";
|
|
||||||
$postamble .= " -\$(MSGFMT) -o \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo po/$po.po\n";
|
|
||||||
$postamble .= " -\$(CHMOD) 644 \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
print " skipped";
|
|
||||||
}
|
|
||||||
print "\n";
|
|
||||||
|
|
||||||
$postamble .= "
|
|
||||||
# generate tags file
|
# generate tags file
|
||||||
tags: .
|
tags: .
|
||||||
ctags --lang=c `find . -name '*.xs' -print`
|
ctags --lang=c `find . -name '*.xs' -print`
|
||||||
|
@ -246,10 +228,6 @@ tags: .
|
||||||
autoconf:
|
autoconf:
|
||||||
aclocal; autoheader; autoconf
|
aclocal; autoheader; autoconf
|
||||||
|
|
||||||
# merge messages into potfile
|
|
||||||
msgmerge:
|
|
||||||
./po/update.sh
|
|
||||||
|
|
||||||
# set \$VERSION in all modules
|
# set \$VERSION in all modules
|
||||||
setver:
|
setver:
|
||||||
\$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Gimp/*.pm UI/*.pm Net/*.pm
|
\$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Gimp/*.pm UI/*.pm Net/*.pm
|
||||||
|
@ -260,7 +238,7 @@ setver:
|
||||||
}
|
}
|
||||||
|
|
||||||
$GIMP_INC_NOUI = "-I../../ $GIMP_INC_NOUI" if $IN_GIMP;
|
$GIMP_INC_NOUI = "-I../../ $GIMP_INC_NOUI" if $IN_GIMP;
|
||||||
@DIRS= qw/Gimp Net UI/;
|
@DIRS= qw/Gimp Net UI po/;
|
||||||
|
|
||||||
$build_module = $IN_GIMP || $ENV{GIMP_PERL_MODULE_INC};
|
$build_module = $IN_GIMP || $ENV{GIMP_PERL_MODULE_INC};
|
||||||
# temporarily disabled because of politics
|
# temporarily disabled because of politics
|
||||||
|
@ -296,6 +274,9 @@ print "writing Gimp/Config.pm... ";
|
||||||
}
|
}
|
||||||
print "ok\n";
|
print "ok\n";
|
||||||
|
|
||||||
|
@EXE_FILES = qw(gimpdoc xcftopnm embedxpm);
|
||||||
|
push @EXE_FILES, qw(scm2perl scm2scm) if $PRD;
|
||||||
|
|
||||||
WriteMakefile(
|
WriteMakefile(
|
||||||
'dist' => {
|
'dist' => {
|
||||||
PREOP => 'make setver && chmod -R u=rwX,go=rX . ;',
|
PREOP => 'make setver && chmod -R u=rwX,go=rX . ;',
|
||||||
|
@ -328,7 +309,7 @@ WriteMakefile(
|
||||||
'LDFROM' => expand("\$(OBJECT) $LIBS $INTLLIBS"),
|
'LDFROM' => expand("\$(OBJECT) $LIBS $INTLLIBS"),
|
||||||
'INC' => "$INC1 $GIMP_INC_NOUI $CPPFLAGS $CFLAGS",
|
'INC' => "$INC1 $GIMP_INC_NOUI $CPPFLAGS $CFLAGS",
|
||||||
'DEFINE' => "$DEFINE1 $DEFS",
|
'DEFINE' => "$DEFINE1 $DEFS",
|
||||||
'EXE_FILES' => [qw(scm2perl scm2scm gimpdoc xcftopnm embedxpm)],
|
'EXE_FILES' => \@EXE_FILES,
|
||||||
'macro' => \%cfg,
|
'macro' => \%cfg,
|
||||||
'realclean' => { FILES => "config.status config.cache config.pl config.log config.h Gimp/Config.pm Makefile" },
|
'realclean' => { FILES => "config.status config.cache config.pl config.log config.h Gimp/Config.pm Makefile" },
|
||||||
'clean' => { FILES => "Makefile.old stamp-h" },
|
'clean' => { FILES => "Makefile.old stamp-h" },
|
||||||
|
|
|
@ -14,14 +14,15 @@ put under LGPL:
|
||||||
|
|
||||||
gimpenv.c, gimpmodule.h, color_selector.h, color_display.h
|
gimpenv.c, gimpmodule.h, color_selector.h, color_display.h
|
||||||
|
|
||||||
|
po/Makefile
|
||||||
|
<Sven> schmorp: I think the makefile should have all (builds the pot-file and
|
||||||
|
calls msgfmt if po-files have changed),
|
||||||
|
+update-po (merges all po-files), install, uninstall eventually
|
||||||
|
|
||||||
API generalization
|
API generalization
|
||||||
guide ->
|
guide ->
|
||||||
gimp_desaturate -> drawable
|
gimp_desaturate -> drawable
|
||||||
|
|
||||||
firetext! AND _grayscale_ for map_gradient(!)
|
|
||||||
|
|
||||||
sota-chrome pagesize of 2 is _wrong_
|
|
||||||
|
|
||||||
bugs
|
bugs
|
||||||
* damnit libintl crazy shit
|
* damnit libintl crazy shit
|
||||||
[DONE] * alow gimp_selection_shrink with a zero argument.
|
[DONE] * alow gimp_selection_shrink with a zero argument.
|
||||||
|
|
|
@ -47,6 +47,7 @@ $^W=0;
|
||||||
LIBS => q[@LIBS@],
|
LIBS => q[@LIBS@],
|
||||||
INTLLIBS => q[@INTLLIBS@],
|
INTLLIBS => q[@INTLLIBS@],
|
||||||
MSGFMT => q[@MSGFMT@],
|
MSGFMT => q[@MSGFMT@],
|
||||||
|
MSGMERGE => q[@MSGMERGE@],
|
||||||
);
|
);
|
||||||
|
|
||||||
sub expand {
|
sub expand {
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Feb 21 13:24:39 CET 2000 Marc Lehmann <pcg@goof.com>
|
||||||
|
|
||||||
|
* Makefile.PL: New file, should support the "standard" targets.
|
||||||
|
* update.sh: Sven wrote this better version.
|
||||||
|
|
||||||
Mon Feb 21 01:15:28 CET 2000 Sven Neumann <sven@gimp.org>
|
Mon Feb 21 01:15:28 CET 2000 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* .cvsignore: added a few files that shouldn't be in CVS
|
* .cvsignore: added a few files that shouldn't be in CVS
|
||||||
|
|
51
plug-ins/perl/po/Makefile.PL
Normal file
51
plug-ins/perl/po/Makefile.PL
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
use ExtUtils::MakeMaker;
|
||||||
|
|
||||||
|
do '../config.pl';
|
||||||
|
|
||||||
|
print "Portable message object...";
|
||||||
|
if ($MSGFMT =~ /./) {
|
||||||
|
for (<*.po>) {
|
||||||
|
my ($po) = /(.*)\.po$/;
|
||||||
|
print " $po";
|
||||||
|
$install .= " @-\$(MKPATH) \$(datadir)/locale/$po/LC_MESSAGES\n".
|
||||||
|
" -\$(MSGFMT) -o \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo $po.po\n".
|
||||||
|
" @-\$(CHMOD) 644 \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n";
|
||||||
|
$uninstall .= " \$(RM_F) \$(datadir)/locale/$po/LC_MESSAGES/gimp-perl.mo\n";
|
||||||
|
$updatepo .= " msgmerge -w 83 $po.po gimp-perl.pot >$po.po~ && mv $po.po~ $po.po\n";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
print " skipped";
|
||||||
|
}
|
||||||
|
print "\n";
|
||||||
|
|
||||||
|
WriteMakefile(
|
||||||
|
'macro' => \%cfg,
|
||||||
|
'realclean' => { FILES => "gimp-perl.pot" },
|
||||||
|
'clean' => { FILES => "*.mo" },
|
||||||
|
);
|
||||||
|
|
||||||
|
sub MY::postamble {
|
||||||
|
<<XXX
|
||||||
|
prefix = $prefix
|
||||||
|
datadir = $datadir
|
||||||
|
|
||||||
|
all :: update-pot
|
||||||
|
|
||||||
|
update-po: update-pot
|
||||||
|
$updatepo
|
||||||
|
|
||||||
|
update-pot: ./update.sh
|
||||||
|
./update.sh
|
||||||
|
|
||||||
|
install :: install-po
|
||||||
|
|
||||||
|
uninstall :: uninstall-po
|
||||||
|
|
||||||
|
install-po ::
|
||||||
|
$install
|
||||||
|
|
||||||
|
uninstall-po ::
|
||||||
|
$uninstall
|
||||||
|
|
||||||
|
XXX
|
||||||
|
}
|
|
@ -3,11 +3,5 @@
|
||||||
cd ..
|
cd ..
|
||||||
test -f MANIFEST || exec echo "must be started in plug-ins/perl/po"
|
test -f MANIFEST || exec echo "must be started in plug-ins/perl/po"
|
||||||
|
|
||||||
./pxgettext `find . -name '*.pm' -o -name '*.xs' -o -path './examples/*'` Perl-Server |
|
./pxgettext `find . -name '*.pm' -o -name '*.xs' -o -path './examples/*'` Perl-Server > po/gimp-perl.pot
|
||||||
msgmerge -w 83 po/gimp-perl.pot - >gimp-perl.pot~ &&
|
|
||||||
mv gimp-perl.pot~ po/gimp-perl.pot
|
|
||||||
|
|
||||||
#for po in po/*.po; do
|
|
||||||
# msgmerge -w 83 $po po/gimp-perl.pot >$po~ && mv $po~ $po
|
|
||||||
#done
|
|
||||||
|
|
||||||
|
|
|
@ -110,12 +110,12 @@ sub plug_in_constant {
|
||||||
\&drop_1st
|
\&drop_1st
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'api2' => [[
|
'api2' =>
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
"^(gimp-image-disable-undo|gimp-image-enable-undo)\$",
|
"^(gimp-image-disable-undo|gimp-image-enable-undo)\$",
|
||||||
\&swap_last_two
|
\&swap_last_two
|
||||||
}
|
]
|
||||||
],
|
],
|
||||||
'1.1' => ['nice','api1','api2'],
|
'1.1' => ['nice','api1','api2'],
|
||||||
'1.2' => ['nice','api1','api2'],
|
'1.2' => ['nice','api1','api2'],
|
||||||
|
|
Loading…
Reference in a new issue