mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
now "make" produces a tarball but still incomplete yet.
This commit is contained in:
21
util/get-tarball
Executable file
21
util/get-tarball
Executable 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
|
||||
|
Reference in New Issue
Block a user