X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fsbin%2Flicense_tag;h=9ddf82e2d56488a5188dcc1ea77de98fcfebbaef;hp=26dd38052d792f9715f3922d2d7ac078db99351e;hb=75162bb14b3e38d66617077843f4dfdcaf09d5c4;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/sbin/license_tag b/rt/sbin/license_tag index 26dd38052..9ddf82e2d 100644 --- a/rt/sbin/license_tag +++ b/rt/sbin/license_tag @@ -113,7 +113,7 @@ sub tag_mason { my $pm = $_; return unless (-f $pm); return if $pm =~ /images/ || $pm =~ /\.(?:png|jpe?g|gif)$/; - open(FILE,"<$pm") || die "Failed to open $pm"; + open( FILE, '<', $pm ) or die "Failed to open $pm"; my $file = (join "", ); close (FILE); print "$pm - "; @@ -137,7 +137,7 @@ sub tag_mason { - open (FILE, ">$pm") || die "couldn't write new file"; + open( FILE, '>', $pm ) or die "couldn't write new file"; print FILE $file; close FILE; @@ -146,7 +146,7 @@ sub tag_mason { sub tag_makefile { my $pm = shift; - open(FILE,"<$pm") || die "Failed to open $pm"; + open( FILE, '<', $pm ) or die "Failed to open $pm"; my $file = (join "", ); close (FILE); print "$pm - "; @@ -170,7 +170,7 @@ sub tag_makefile { - open (FILE, ">$pm") || die "couldn't write new file"; + open( FILE, '>', $pm ) or die "couldn't write new file"; print FILE $file; close FILE; @@ -180,7 +180,7 @@ sub tag_makefile { sub tag_pm { my $pm = $_; next unless $pm =~ /\.pm/s; - open(FILE,"<$pm") || die "Failed to open $pm"; + open( FILE, '<', $pm ) or die "Failed to open $pm"; my $file = (join "", ); close (FILE); print "$pm - "; @@ -204,7 +204,7 @@ sub tag_pm { - open (FILE, ">$pm") || die "couldn't write new file $pm"; + open( FILE, '>', $pm ) or die "couldn't write new file $pm"; print FILE $file; close FILE; @@ -214,7 +214,7 @@ sub tag_pm { sub tag_script { my $pm = $_; return unless (-f $pm); - open(FILE,"<$pm") || die "Failed to open $pm"; + open( FILE, '<', $pm ) or die "Failed to open $pm"; my $file = (join "", ); close (FILE); print "$pm - "; @@ -241,7 +241,7 @@ sub tag_script { print "\n"; - open (FILE, ">$pm") || die "couldn't write new file"; + open( FILE, '>', $pm ) or die "couldn't write new file"; print FILE $file; close FILE;