This commit is contained in:
anki-code 2020-03-22 13:37:17 +03:00
parent 1de7bf801e
commit 2a1696618f

View File

@ -1 +1,40 @@
#!/usr/bin/env bash
CDIR="$(cd "$(dirname "$0")" && pwd)"
build_dir=$CDIR/build
while getopts q option
do
case "${option}"
in
q) QUIET=1;;
esac
done
rm -rf $build_dir
mkdir -p $build_dir
for f in entrypoint.sh
do
cp $CDIR/$f $build_dir/
done
#url='https://github.com/xxh/zsh-portable/raw/master/result/zsh-portable-Linux-x86_64.tar.gz'
#tarname=`basename $url`
#
#cd $build_dir
#
#[ $QUIET ] && arg_q='-q' || arg_q=''
#[ $QUIET ] && arg_s='-s' || arg_s=''
#[ $QUIET ] && arg_progress='' || arg_progress='--show-progress'
#
#if [ -x "$(command -v wget)" ]; then
# wget $arg_q $arg_progress $url -O $tarname
#elif [ -x "$(command -v curl)" ]; then
# curl $arg_s -L $url -o $tarname
#else
# echo Install wget or curl
#fi
#
#tar -xzf $tarname
#rm $tarname