File: changes2changelog

package info (click to toggle)
quilt 0.60-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,856 kB
  • sloc: sh: 5,425; perl: 1,312; lisp: 430; makefile: 414
file content (20 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/perl

$ENV{"LC_ALL"} = "C";

while (<>) {
	if (/^(|-+)$/) {
		next;
	} elsif (/^(\S.*) - (.*@.*)$/) {
		# print "[" . $1 . "]\n";
		open FH, 'date -u +"* %a %b %d %Y" -d "' . $1 . '" |';
		while (<FH>) {
			chomp;
			print $_ . " - " . $2 . "\n";
		}
		close FH;
		next;
	} elsif (/(- |  +)(?!\s)/) {
		print;
	}
}