1 Star 0 Fork 129

feng/cppweb

forked from 寻根/cppweb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install.sh 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
寻根 提交于 2022-01-22 17:48 . 修改说明文档与安装脚本
#!/bin/bash
if [ -f cppshell/setup ]
then
cppshell/setup env
else
echo -e '\033[31m'
echo -e 'please compile cppweb project'
echo -e '\033[0m'
exit -1
fi
OSTYPE=`uname`
EXCLUDE='--exclude=makefile --exclude=.bin --exclude=log --exclude=obj --exclude=*.java --exclude=*.cpp --exclude=*.yml --exclude=*.db --exclude=*.o --exclude=*.c'
function clone
{
mkdir -p $path/$1
cp -r $1/* $path/$1
}
function setup
{
if [ -f $path/makeconf ]
then
rm -f $path/makeconf
if [ $? != 0 ]
then
echo -e '\033[31m'
echo -e 'please install with root user'
echo -e '\033[0m'
exit -1
fi
fi
mkdir -p $path
if [ $? != 0 ]
then
echo -e '\033[31m'
echo -e 'please install with root user'
echo -e '\033[0m'
exit -1
fi
clone product/jar
clone product/res
clone webapp/app/compile/cpp
echo 'install cppweb'
echo '--------------------------------'
echo '1.packaging files'
tar cvf $path/product.tar $EXCLUDE library webapp > /dev/null
}
if [ "$OSTYPE" == "Linux" ]
then
path=/opt/cppweb
setup
clone product/lib
clone product/dll
clone product/bin
else
path=/c/cppweb
setup
clone product/win
fi
cp makeconf $path/makeconf
cp .webprofile $path/webprofile
echo '2.unpacking files'
cd $path && tar xvf product.tar > /dev/null && rm product.tar
echo '3.installing service'
echo '--------------------------------'
echo '>>> install cppweb success'
if [ "$OSTYPE" == "Linux" ]
then
su - `whoami`
else
echo '>>> you need login again'
echo ''
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/fenggeq/cppweb.git
git@gitee.com:fenggeq/cppweb.git
fenggeq
cppweb
cppweb
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385