~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/kfontinst/viewpart/download-unicode-files.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Note: This file is tkaen, and modified, from gucharmap - svn revision 1169
 
4
#
 
5
# usage: ./download-unicode-files.sh DIRECTORY
 
6
# downloads following files from unicode.org to DIRECTORY or unicode/ (if
 
7
# DIRECTORY is not presented):
 
8
#  - UnicodeData.txt
 
9
#  - Unihan.zip
 
10
#  - NamesList.txt
 
11
#  - Blocks.txt
 
12
#  - Scripts.txt
 
13
#
 
14
 
 
15
# FILES='UnicodeData.txt Unihan.zip NamesList.txt Blocks.txt Scripts.txt'
 
16
 
 
17
FILES='UnicodeData.txt Blocks.txt Scripts.txt'
 
18
 
 
19
mkdir -p ${1:-unicode} 
 
20
 
 
21
for x in $FILES; do
 
22
        wget "http://www.unicode.org/Public/UNIDATA/$x" -O "${1:-unicode}/$x"
 
23
done
 
24
 
 
25
echo 'Done.'
 
26