diff options
Diffstat (limited to 'unicode/update.sh')
| -rw-r--r-- | unicode/update.sh | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/unicode/update.sh b/unicode/update.sh new file mode 100644 index 0000000..2388639 --- /dev/null +++ b/unicode/update.sh @@ -0,0 +1,23 @@ + +filename="$1" +url="$2" + +tmpfilename="$filename.tmp" + +echo wget $url +wget -O - $url >$tmpfilename +if test ! -s $tmpfilename +then +	rm -f $tmpfilename +	exit 1 +fi + +if test -f $filename +then +	if cmp -s $filename $tmpfilename +	then +		rm -f $tmpfilename +		exit 0 +	fi +fi +mv $tmpfilename $filename | 
