Changeset 2894
- Timestamp:
- Sep 6, 2014, 12:50:17 PM (11 years ago)
- File:
-
- 1 edited
-
scripts/xml-stats/print-stats.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scripts/xml-stats/print-stats.sh
r2805 r2894 3 3 # gnome-3-0, freedesktop-org, gnome-gimp, etc 4 4 5 # When errors occur see the XML Interfaces section in https://wiki.gnome.org/DamnedLies 6 5 7 TMP=`mktemp` 6 8 CP="/usr/share/java/xalan-j2.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/share/java/bsf.jar:/usr/share/java/commons-logging.jar:/usr/share/java/js.jar" 7 9 ED=$1; shift 10 11 12 # The new DamnedLies XML interface (around 2014-09-03) requires an 13 # edition in the URL. We are fetchig the first on the list. The 14 # assumtion is that it is the development relese a.k.a 15 # new-stable. This approach is kind of a hack. A better approach is 16 # desired. 17 if [ ! "$ED" ] ; 18 then 19 rel=$(mktemp); 20 wget --quiet -O $rel https://l10n.gnome.org/releases/xml 21 ED=$(grep -ioE ".*\(development\)" -B1 $rel | grep -oE "gnome-[0-9\-]+"); 22 rm $rel 23 fi 24 25 if [ ! "$ED" ]; 26 then 27 echo "Missing edition (i.e. gnome-3-14). Giving up!" 28 exit 1 29 fi 30 8 31 wget http://l10n.gnome.org/languages/bg/$ED/xml -O $TMP 32 echo "Версия на GNOME: $ED" 9 33 java -cp $CP org.apache.xalan.xslt.Process -IN $TMP -XSL format.xsl 10 34 rm $TMP
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/project/gtp/chrome/site/your_project_logo.png)