1 Star 0 Fork 0

ylyhappy/bisoncpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sourcetar 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Frank B. Brokken 提交于 2024-05-16 11:30 . repaired the manual construction
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ylyhappy/bisoncpp.git
git@gitee.com:ylyhappy/bisoncpp.git
ylyhappy
bisoncpp
bisoncpp
master

搜索帮助