Changeset 1546 for trunk/LATMOS-Accounts/Makefile.PL
- Timestamp:
- 12/28/15 15:45:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/Makefile.PL
r1445 r1546 73 73 DESTINSTALLMAN5DIR => '$(DESTDIR)$(INSTALLMAN5DIR)', 74 74 DESTINSTALLMAN8DIR => '$(DESTDIR)$(INSTALLMAN8DIR)', 75 LOCALEDIR => '/usr/share/locale', 75 76 INST_MAN5DIR => 'blib/man5', 76 77 INST_MAN8DIR => 'blib/man8', … … 96 97 97 98 sub postamble { 99 100 my @po = map { m:lib/LATMOS/Accounts/I18N/([^\.]+)\.po$:; $1 } 101 glob('lib/LATMOS/Accounts/I18N/*.po'); 102 103 my $makepo = join("\n\n", map { 104 " 105 lib/LATMOS/Accounts/I18N/$_.po: lib/LATMOS/Accounts/I18N/messages.pot 106 \t[ -f lib/LATMOS/Accounts/I18N/$_.po ] || msginit --no-translator --input=lib/LATMOS/Accounts/I18N/messages.pot --output= --locale=$_ 107 \tmsgmerge -U lib/LATMOS/Accounts/I18N/$_.po lib/LATMOS/Accounts/I18N/messages.pot 108 109 " 110 } @po 111 ); 112 113 $makepo .= "\n\npo: " . join(' ', map { "lib/LATMOS/Accounts/I18N/$_.po" } @po) . "\n"; 114 98 115 <<EOF; 99 116 #.PHONY .= svnmanifest 117 118 pot: lib/LATMOS/Accounts/I18N/messages.pot 119 120 lib/LATMOS/Accounts/I18N/messages.pot: 121 \tcat MANIFEST | egrep '^(lib|bin)' | xargs xgettext.pl -o lib/LATMOS/Accounts/I18N/messages.pot 122 123 $makepo 100 124 101 125 bin/la-sql-upgrade: bin/la-sql-upgrade.in … … 158 182 my $section = $self->SUPER::install(); 159 183 160 $section =~ s/(^install ::.*)/$1 install_config install_templates install_data /m;184 $section =~ s/(^install ::.*)/$1 install_config install_templates install_data install_po/m; 161 185 $section =~ s/\$\(INST_BIN\) \$\(DESTINSTALL(\w*)BIN\)/$& \$(INST_MAN5DIR) \$(DESTINSTALLMAN5DIR) \$(INST_MAN8DIR) \$(DESTINSTALLMAN8DIR)/g; 162 186 … … 179 203 $(ABSPERLRUN) -MExtUtils::Install -e 'install({ sqldata => @ARGV })' \\ 180 204 $(DESTDIR)$(DATADIR) 205 206 install_po :: 207 install -d $(DESTDIR)$(LOCALEDIR)/LATMOS::Accounts 208 $(ABSPERLRUN) -MExtUtils::Install -e 'install({ "lib/LATMOS/Accounts/I18N" => @ARGV })' \\ 209 $(DESTDIR)$(LOCALEDIR)/LATMOS::Accounts 181 210 ]; 182 211
Note: See TracChangeset
for help on using the changeset viewer.