repo.or.cz
/
survex.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update for 1.2.37
[survex.git]
/
lib
/
unlaunchpad-po
blob
83b52b006fe0dbd068b960f2eba118646182b78f
1
#!/usr/bin/perl -w
2
use
strict
;
3
4
$/ =
"
\n\n
"
;
5
$_
= <>;
6
s/^"X-Launchpad-Export-Date: .*\\n"\n//m
;
7
s/^"X-Generator: Launchpad \(build \d+\)\\n"\n//m
;
8
s/^("PO(?:-Revision|T-Creation)-Date: \d+-\d+-\d+ \d+:\d+)(.*)$/$1:00 $2/mg
;
9
print
;
10
11
$/ =
undef
;
12
$_
= <>;
13
s/"\n"//g
;
14
s/^(#\.)\s+$/$1/mg
;
15
# Fix transifex source refs
16
while
(
s/(^#: .*) /$1\n#: /m
) { }
17
print
;