now "make" produces a tarball but still incomplete yet.

This commit is contained in:
agentzh (章亦春)
2011-02-16 16:25:19 +08:00
parent 83315462bd
commit baeb020fec
8 changed files with 330 additions and 2 deletions

21
util/get-tarball Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
root=$(readlink -f -- "$(dirname -- "$0")/..")
work=$root/work
if [ ! -d $work ]; then
mkdir $work || exit 1
fi
url=$1
outfile=$3
cachefile=$work/$outfile
if [ -s $cachefile ]; then
cp $work/$outfile $outfile || exit 1
else
wget --no-check-certificate $1 -O $3 || exit 1
if [ $? == 0 ]; then
cp $3 $work/ || exit 1
fi
fi