[gnome3-web] [po] only fix <script> tags calling out external javascript



commit 7578987acd448630a2d8f9606f03bb9685539825
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Apr 13 10:00:09 2011 +0200

    [po] only fix <script> tags calling out external javascript

 po/build.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/po/build.sh b/po/build.sh
index c41081e..abbe9d6 100755
--- a/po/build.sh
+++ b/po/build.sh
@@ -15,8 +15,8 @@ do
     do
       echo "Writing $HTMLFILE.$LANG"
       xml2po -p $POFILE -m xhtml -o $HTMLFILE.$LANG $HTMLFILE
-      grep -q '<script' $HTMLFILE.$LANG && \
-        sed -i -e 's/\(<script.*\)/\1<\/script>/' $HTMLFILE.$LANG
+      grep -q '<script src' $HTMLFILE.$LANG && \
+        sed -i -e 's/\(<script src.*\)/\1<\/script>/' $HTMLFILE.$LANG
       grep -q '<iframe' $HTMLFILE.$LANG && \
         sed -i -e 's/\(<iframe.*\)/\1<\/iframe>/' $HTMLFILE.$LANG
       grep -q '<div class="clear"\/>' $HTMLFILE.$LANG && \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]