1 Star 0 Fork 1

Ansonjo/JThread

forked from hqr/JThread 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
builddist.sh 954 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
VERSION=`cat CMakeLists.txt|grep VERSION | grep set | head -n 1 |cut -f 2 -d " "|cut -f 1 -d ")"`
LIBNAME=jthread
TMPDIR=`tempfile`
CURDIR=`pwd`
rm -r $TMPDIR
if ! mkdir $TMPDIR ; then
echo "Couldn't create temporary directory"
exit -1
fi
cd $TMPDIR
TMPDIR=`pwd` # Get the full path
cd $CURDIR
if ! git archive --format tar --prefix=${LIBNAME}-${VERSION}/ HEAD | (cd $TMPDIR && tar xf -) ; then
echo "Couldn't archive repository"
exit -1
fi
cd $TMPDIR/${LIBNAME}-${VERSION}
rm -f `find . -name ".git*"`
rm -f builddist.sh
rm -rf sphinxdoc
rm -f TODO
cd ..
if ! tar cfz ${LIBNAME}-${VERSION}.tar.gz ${LIBNAME}-${VERSION}/ ; then
echo "Couldn't create archive"
exit -1
fi
if ! tar cfj ${LIBNAME}-${VERSION}.tar.bz2 ${LIBNAME}-${VERSION}/ ; then
echo "Couldn't create archive"
exit -1
fi
if ! zip ${LIBNAME}-${VERSION}.zip `find ${LIBNAME}-${VERSION}/` ; then
echo "Couldn't create archive"
exit -1
fi
mv $TMPDIR $CURDIR/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZheJiangYiLeYouXianGongSi_admin/JThread.git
git@gitee.com:ZheJiangYiLeYouXianGongSi_admin/JThread.git
ZheJiangYiLeYouXianGongSi_admin
JThread
JThread
master

搜索帮助