gimp-help-2 r2545 - in branches/xml2po-support: . stylesheets tools
- From: romanofski svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp-help-2 r2545 - in branches/xml2po-support: . stylesheets tools
- Date: Fri, 29 Aug 2008 18:58:06 +0000 (UTC)
Author: romanofski
Date: Fri Aug 29 18:58:06 2008
New Revision: 2545
URL: http://svn.gnome.org/viewvc/gimp-help-2?rev=2545&view=rev
Log:
2008-08-29 Roman Joost <romanofski gimp org>
* tools/profile-xml.sh
* stylesheets/profile-lang.xsl: removed - the script uses
profile.xsl instead. I hope I don't fall in disgrace, by
removing this, but it doesn't seem to make any difference.
Removed:
branches/xml2po-support/stylesheets/profile-lang.xsl
Modified:
branches/xml2po-support/ChangeLog
branches/xml2po-support/tools/profile-xml.sh
Modified: branches/xml2po-support/tools/profile-xml.sh
==============================================================================
--- branches/xml2po-support/tools/profile-xml.sh (original)
+++ branches/xml2po-support/tools/profile-xml.sh Fri Aug 29 18:58:06 2008
@@ -1,6 +1,4 @@
#!/bin/bash
-
-
srcdir="src"
dstdir="xml"
infile=""
@@ -8,7 +6,7 @@
lang="en"
verbose=''
help=0
-stylesheet="stylesheets/profile-lang.xsl"
+stylesheet="stylesheets/profile.xsl"
usage() {
exit_code="$1"
@@ -35,7 +33,7 @@
options=`getopt -n profile-xml.sh --unquoted \
--longoptions "srcdir:,dstdir:,input:,file:,output:,lang:,verbose,help" \
- --options "s:d:i:f:o:l:vh" -- "$@"` || usage 64
+ --options "s:d:i:f:o:l:vh" -- "$@"` || usage 64
set -- $options
while [ -n "$1" ]; do
case "$1" in
@@ -95,11 +93,11 @@
if [ -n "$infile" ]; then
if [ "$outfile" = "-" ]; then
xsltproc --nonet --stringparam profile.lang "$lang" $stylesheet $infile \
- | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
+ | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
| xmllint --nonet -
else
xsltproc --nonet --stringparam profile.lang "$lang" $stylesheet $infile \
- | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
+ | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
| xmllint --nonet - > $outfile
fi
else
@@ -116,7 +114,7 @@
test -n "$verbose" && echo $src_file
dst_file=$dstdir/${src_file#*$srcdir/}
xsltproc --nonet --stringparam profile.lang "$lang" $stylesheet $src_file \
- | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
+ | sed -e '/^[ ]*$/d' -e 's/^ *<sect[1-4][ >]/\n&/' \
| xmllint --nonet - > $dst_file
done
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]