summaryrefslogtreecommitdiff
path: root/scripts/remove-gtkdoclink.pl
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2016-07-27 15:33:38 +0900
committersangwan.kwon <sangwan.kwon@samsung.com>2016-07-27 15:39:05 +0900
commitd4d35351fd63a7051a7cbef2002cb0c641925ec3 (patch)
treed390d823f40a886547b932f9bd9239fe81ef6056 /scripts/remove-gtkdoclink.pl
parentcaccc67c33486a1d1b29f227071851961b29a722 (diff)
downloadxmlsec1-d4d35351fd63a7051a7cbef2002cb0c641925ec3.tar.gz
xmlsec1-d4d35351fd63a7051a7cbef2002cb0c641925ec3.tar.bz2
xmlsec1-d4d35351fd63a7051a7cbef2002cb0c641925ec3.zip
Imported Upstream version 1.2.22upstream/1.2.22upstream
Change-Id: I4d17734839f021e46aef7a30483ac17e8c85fb1d Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Diffstat (limited to 'scripts/remove-gtkdoclink.pl')
-rwxr-xr-xscripts/remove-gtkdoclink.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/remove-gtkdoclink.pl b/scripts/remove-gtkdoclink.pl
index 84ab625c..30404e09 100755
--- a/scripts/remove-gtkdoclink.pl
+++ b/scripts/remove-gtkdoclink.pl
@@ -8,11 +8,13 @@ while ($file = shift @ARGV) {
open (IN, $file) || die "Can't open $file: $!";
my $entire_file;
while(<IN>) {
- $entire_file = $entire_file . $_;
+ $entire_file = $entire_file . $_;
}
close (IN);
- $entire_file =~ s%<GTKDOCLINK\s+HREF="([^"]*)"\s*>(.*?)</GTKDOCLINK\s*>% "<font>$2</font>" %ge;
-
+
+ $entire_file =~ s%<GTKDOCLINK([^>]*)>%<font>%gi;
+ $entire_file =~ s%</GTKDOCLINK([^>]*)>%</font>%gi;
+
open (OUT, ">$file") || die "Can't open $file: $!";
print OUT $entire_file;
close (OUT);