"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/intl/synclang" (29 Dec 2010, 385 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 echo
    3 echo Syncing other languages.
    4 mkdir ../intl-bak 2>/dev/null
    5 languages=`cat index.txt|sed 's/
//g'`
    6 if [ -n "$languages" ]; then
    7     for i in $languages; do
    8         if [ "$i" != english ]; then
    9             echo -n $i" " 1>&2
   10             awk -f synclang.awk <$i.lng | sed 's/
//g' >_sync.tmp
   11             mv $i.lng ../intl-bak/$i.lng.bak
   12             mv _sync.tmp $i.lng
   13         fi
   14     done
   15     echo
   16     echo Done.
   17 fi
   18 echo
   19 ./gen-intl