summaryrefslogtreecommitdiff
path: root/include/control/uncomment.pl
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2012-03-07 18:29:03 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2012-03-07 18:29:03 +0100
commitcbf07fba9072212d0535a89651fb686650e727f0 (patch)
treecb2cd047253a85c7649158aec7a21b08dafe7b0d /include/control/uncomment.pl
parent62773dc7e9076d57764f3e823366697eb8a19060 (diff)
downloadaudiomanager-cbf07fba9072212d0535a89651fb686650e727f0.tar.gz
* [GAM-29] fixes
Diffstat (limited to 'include/control/uncomment.pl')
-rwxr-xr-xinclude/control/uncomment.pl24
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;
+}
+
+
+
+
+