source: git/lib/unlaunchpad-po @ 8377f15

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 8377f15 was ad0bf7b, checked in by Olly Betts <olly@…>, 11 years ago

lib/unlaunchpad-po: Normalise dates in PO headers.

  • Property mode set to 100755
File size: 353 bytes
Line 
1#!/usr/bin/perl -w
2use strict;
3
4$/ = "\n\n";
5$_ = <>;
6s/^"X-Launchpad-Export-Date: .*\\n"\n//m;
7s/^"X-Generator: Launchpad \(build \d+\)\\n"\n//m;
8s/^("PO(?:-Revision|T-Creation)-Date: \d+-\d+-\d+ \d+:\d+)(.*)$/$1:00 $2/mg;
9print;
10
11$/ = undef;
12$_ = <>;
13s/"\n"//g;
14s/^(#\.)\s+$/$1/mg;
15# Fix transifex source refs
16while (s/(^#: .*) /$1\n#. /m) { }
17print;
Note: See TracBrowser for help on using the repository browser.