diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-03-07 18:29:03 +0100 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-03-07 18:29:03 +0100 |
commit | cbf07fba9072212d0535a89651fb686650e727f0 (patch) | |
tree | cb2cd047253a85c7649158aec7a21b08dafe7b0d /include/control/uncomment.pl | |
parent | 62773dc7e9076d57764f3e823366697eb8a19060 (diff) | |
download | audiomanager-cbf07fba9072212d0535a89651fb686650e727f0.tar.gz |
* [GAM-29] fixes
Diffstat (limited to 'include/control/uncomment.pl')
-rwxr-xr-x | include/control/uncomment.pl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/control/uncomment.pl b/include/control/uncomment.pl new file mode 100755 index 0000000..f06f52c --- /dev/null +++ b/include/control/uncomment.pl @@ -0,0 +1,24 @@ +use strict; +use warnings; + +foreach (@ARGV) +{ + + open FILE, $_ or die "Couldn't open file: $!"; + my $string = join("", <FILE>); + close FILE; + + $string=~ s|/[*].*?[*]/||sg; + $string=~ s/virtual//sg; + $string=~ s/=0;/;/sg; + $string=~ s/(^|\n)[\n\s]*/$1/g; + + open F, ">$_" or die "Couldn't open file: $!"; + print F $string; + close F; +} + + + + + |