wok-6.x rev 9083
fcitx-zm: no work into stuff
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 17:24:29 2011 +0100 (2011-03-04) |
parents | 3a0086517fb7 |
children | 63ab912b3581 |
files | fcitx-zm/receipt |
line diff
1.1 --- a/fcitx-zm/receipt Fri Mar 04 11:00:36 2011 +0000 1.2 +++ b/fcitx-zm/receipt Fri Mar 04 17:24:29 2011 +0100 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