Ignore:
Timestamp:
Sep 6, 2014, 12:50:17 PM (4 years ago)
Author:
ivalkov
Message:

scripts/xml-stats/print.sh: Поправка на връзките към DamnedLies?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/xml-stats/print-stats.sh

    r2805 r2894  
    33# gnome-3-0, freedesktop-org, gnome-gimp, etc
    44
     5# When errors occur see the XML Interfaces section in https://wiki.gnome.org/DamnedLies
     6
    57TMP=`mktemp`
    68CP="/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"
    79ED=$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.
     17if [ ! "$ED" ] ;
     18then
     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   
     23fi
     24
     25if [ ! "$ED" ];
     26then
     27    echo "Missing edition (i.e. gnome-3-14). Giving up!"
     28    exit 1
     29fi
     30
    831wget http://l10n.gnome.org/languages/bg/$ED/xml -O $TMP
     32echo "Версия на GNOME: $ED"
    933java -cp $CP org.apache.xalan.xslt.Process -IN $TMP -XSL format.xsl
    1034rm $TMP
Note: See TracChangeset for help on using the changeset viewer.