wok-stable diff fcitx-zm/receipt @ rev 11180
Up: actionmailer to 3.1.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 03 00:11:32 2011 +0000 (2011-11-03) |
parents | 05b19606376a |
children | 04c86a61ddf9 |
line diff
1.1 --- a/fcitx-zm/receipt Sun Feb 13 22:57:56 2011 +0100 1.2 +++ b/fcitx-zm/receipt Thu Nov 03 00:11:32 2011 +0000 1.3 @@ -13,18 +13,19 @@ 1.4 compile_rules() 1.5 { 1.6 echo -n "Remove All Words,Remained Hanzi only" 1.7 -# mkdir stuff 1.8 - mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > stuff/zm.txt 1.9 - cd stuff && txt2mb zm.txt zm.mb 1.10 - cd .. 1.11 - status 1.12 + mkdir $DESTDIR 1.13 + cd $DESTDIR 1.14 + [ -s $SOURCES_REPOSITORY/zm.mb ] || wget -P $SOURCES_REPOSITORY $WGET_URL || return 1 1.15 + cp $stuff/zm.conf . 1.16 + mb2txt $SOURCES_REPOSITORY/zm.mb | awk 'NR<=10{print} NR>10{if(length($2)==3)print}' > zm.txt 1.17 + txt2mb zm.txt zm.mb 1.18 +} 1.19 1.20 -} 1.21 genpkg_rules() 1.22 { 1.23 EXTDIR="$fs/usr/share/fcitx/data/table" 1.24 mkdir -p $EXTDIR 1.25 - cp stuff/zm.mb $EXTDIR 1.26 - cp stuff/zm.conf $EXTDIR 1.27 + cp $_pkg/zm.mb $EXTDIR 1.28 + cp $_pkg/zm.conf $EXTDIR 1.29 } 1.30