Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10727964
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:31:06


ubuntu?DD??êò?í?×?μ???????±?-??£?



×a×?£o×÷??knight
http://blog.chinaunix.net/u/23204/showart_305599.html
-----------------------------------
#! /bin/bash

# install stardict
if [[ -f $(which stardict) ]]
then
    echo ""
    echo "You have stardict installed."
    echo ""
    echo "Downloading dictionary files ... "
    echo ""
    sleep 3
else
    sudo apt-get install stardict -y
    echo "Now stardict has been installed."
    echo ""
    echo "Downloading dictionary files ... "
    echo ""
    sleep 3
fi

# Definations
passwd="ubuntu:ubuntuftp"
url=""
dir="$HOME/.stardict/dic"

# í¨ó?′êμ???óD£o21êà?í???ò£?àêμà£??¤ê?£??£?ò£?àê??£??????úרòμ
dict_1="stardict-21shijishuangxiangcidian-2.4.2.tar.bz2"
dict_2="stardict-langdao-ce-gb-2.4.2.tar.bz2"
dict_3="stardict-langdao-ec-gb-2.4.2.tar.bz2"
dict_4="stardict-merrianwebster-2.4.2.tar.bz2"
dict_5="stardict-oxford-gb-2.4.2.tar.bz2"
dict_6="stardict-longman-2.4.2.tar.bz2"
dict_7="stardict-computer-2.4.2.tar.bz2"

if [ ! -d $dir ]
then
    mkdir -p $dir
fi

for dict in $dict_1 $dict_2 $dict_3 $dict_4 $dict_5 $dict_6 $dict_7
do
    wget -c $url/$dict -P $HOME && tar jxf $HOME/$dict -C $dir
    rm -rf $HOME/$dict
    echo ""
done

echo "Run 'stardict &' in terminal,enjoy it."
echo ""
阅读(942) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~