main
|
Last change
on this file was 6331a42, checked in by Olly Betts <olly@…>, 14 years ago |
|
lib/touch-po.pl: New script to "touch" a .po file by updating
"PO-Revision-Date:".
|
-
Property mode
set to
100755
|
|
File size:
231 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/perl -i
|
|---|
| 2 | require 5.008;
|
|---|
| 3 | use strict;
|
|---|
| 4 | use warnings;
|
|---|
| 5 | use POSIX;
|
|---|
| 6 |
|
|---|
| 7 | my $pot_creation_date = strftime "%Y-%m-%d %H:%M:%S +0000", gmtime();
|
|---|
| 8 |
|
|---|
| 9 | while (<>) {
|
|---|
| 10 | s/^("PO-Revision-Date:).*(\\n")/$1 $pot_creation_date$2/;
|
|---|
| 11 | print;
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.