[gnome3-web] [i18n] only fix <script> tags if there are some
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome3-web] [i18n] only fix <script> tags if there are some
- Date: Thu, 10 Feb 2011 09:29:05 +0000 (UTC)
commit ebd5248275138bd6648b242235879f33d0570180
Author: Frédéric Péters <fpeters 0d be>
Date: Thu Feb 10 10:28:27 2011 +0100
[i18n] only fix <script> tags if there are some
po/build.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/po/build.sh b/po/build.sh
index 5a54e9a..0299cf0 100755
--- a/po/build.sh
+++ b/po/build.sh
@@ -8,7 +8,8 @@ do
do
echo "Writing $HTMLFILE.$LANG"
xml2po -p $POFILE -m xhtml -o $HTMLFILE.$LANG $HTMLFILE
- sed -i -e 's/\(<script.*\)/\1<\/script>/' $HTMLFILE.$LANG
+ grep -q '<script' $HTMLFILE.$LANG && \
+ sed -i -e 's/\(<script.*\)/\1<\/script>/' $HTMLFILE.$LANG
done
done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]