File: updateversion

package info (click to toggle)
ifhp 3.5.20-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,424 kB
  • sloc: ansic: 15,055; sh: 12,037; perl: 1,461; makefile: 643; sed: 16
file content (21 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl -i
# <date> 1 Sept 1998 (For LPRng-3.5.3)
# VERSION
use POSIX;
my $v = ` cat ../VERSION `;
chomp $v;
#print "$v\n";
my $s = ctime( time );
#print "$s\n";
my @s = split ' ', $s;
my $w = '<subtitle> ' ."$s[2] $s[1] $s[4] (For $v)</subtitle>\n";
#print $w;

while ( <> ){
	if( /^<subtitle>/ ){
		print $w ;
		print STDERR $w;
	} else {
		print ;
	}
}