diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /includes/zhtable/Makefile.py | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'includes/zhtable/Makefile.py')
-rw-r--r-- | includes/zhtable/Makefile.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/zhtable/Makefile.py b/includes/zhtable/Makefile.py index 305422bd..fd603ce4 100644 --- a/includes/zhtable/Makefile.py +++ b/includes/zhtable/Makefile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # @author Philip import tarfile as tf @@ -31,7 +31,7 @@ def unichr3( *args ): # DEFINE UNIHAN_VER = '5.2.0' -SF_MIRROR = 'cdnetworks-kr-2' +SF_MIRROR = 'dfn' SCIM_TABLES_VER = '0.5.10' SCIM_PINYIN_VER = '0.5.91' LIBTABE_VER = '0.2.3' @@ -39,7 +39,7 @@ LIBTABE_VER = '0.2.3' def download( url, dest ): if os.path.isfile( dest ): - print( 'File %s up to date.' % dest ) + print( 'File %s is up to date.' % dest ) return global islinux if islinux: @@ -370,15 +370,15 @@ $zh2Hant = array(\n''' + PHPArray( toCN ) \ + '\n);\n\n$zh2SG = array(\n' \ + PHPArray( toSG ) \ - + '\n);' + + '\n);\n' - f = open( 'ZhConversion.php', 'wb', encoding = 'utf8' ) + f = open( os.path.join( '..', 'ZhConversion.php' ), 'wb', encoding = 'utf8' ) print ('Writing ZhConversion.php ... ') f.write( php ) f.close() - #Remove temp files - print ('Deleting temp files ... ') + # Remove temporary files + print ('Deleting temporary files ... ') os.remove('EZ-Big.txt.in') os.remove('phrase_lib.txt') os.remove('tsi.src') |