代码拉取完成,页面将自动刷新
#!/bin/bash
PROJECT=bisonc++
cd ~/git/bisonc++/src
if [ -e /usr/share/common-licenses/GPL ] ; then
cp /usr/share/common-licenses/GPL ${PROJECT}/LICENSE
fi
# load the version
VERSION=`grep VERSION ${PROJECT}/VERSION |
sed 's/#define[[:space:]]\+VERSION[[:space:]]\+"\([^"]*\).*/\1/'`
DISTRIBUTION=${PROJECT}-${VERSION} # define the distribution's dir name
tgz()
{
ln -s ${PROJECT} ${DISTRIBUTION} # distribution's dir name
tar czvf $1 --exclude-from=excluded ${DISTRIBUTION}/*
rm ${DISTRIBUTION} ${PROJECT}/LICENSE # rm the link/LICENSE file
}
case "$1" in
(d)
mkdir -p ../tarballs
tgz ../tarballs/${PROJECT}_${VERSION}.orig.tar.gz
;;
(l|o)
tgz ${PROJECT}_${VERSION}.tar.gz
if [ "$1" == "o" ]
then
scp ${PROJECT}_${VERSION}.tar.gz \
oosix:git/${PROJECT}/tarballs/${PROJECT}_${VERSION}.orig.tar.gz
rm ${PROJECT}_${VERSION}.tar.gz
fi
;;
(*)
echo "
Provide arg:
d (debian) to create a local .orig.tar.gz archive in
../tarballs/${PROJECT}/tarballs
l (local) to create ${PROJECT}_${VERSION}.tar.gz in this directory
o (oosix) same as 'l', but upload to oosix (IUO)
"
exit 1
;;
esac
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。