6 Star 46 Fork 19

kl222 / ChineseChessControl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build_debpackage.sh 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
kl222 提交于 2024-03-12 11:06 . Modify debian
#!/bin/bash
if [ -n "$1" -a -z "$QT_ROOT" ]; then
QT_ROOT=$1
fi
if [ ! -f /usr/bin/qmake -a -z "$QT_ROOT" ]; then
echo "Don't QT_ROOT"
echo "$1 QT_ROOT RabbitCommon_DIR"
exit -1
fi
if [ -n "$2" -a -z "$RabbitCommon_DIR" ]; then
RabbitCommon_DIR=$2
fi
if [ -z "$RabbitCommon_DIR" ]; then
RabbitCommon_DIR=`pwd`/../RabbitCommon
fi
export RabbitCommon_DIR=$RabbitCommon_DIR
export QT_ROOT=$QT_ROOT
export PATH=$QT_ROOT/bin:$PATH
#fakeroot debian/rules binary
# -p, --sign-command=sign-command
# When dpkg-buildpackage needs to execute GPG to sign a source
# control (.dsc) file or a .changes file it will run sign-command
# (searching the PATH if necessary) instead of gpg (long option since
# dpkg 1.18.8). sign-command will get all the arguments that gpg
# would have gotten. sign-command should not contain spaces or any
# other shell metacharacters.
# -k, --sign-key=key-id
# Specify a key-ID to use when signing packages (long option since
# dpkg 1.18.8).
# -us, --unsigned-source
# Do not sign the source package (long option since dpkg 1.18.8).
# -ui, --unsigned-buildinfo
# Do not sign the .buildinfo file (since dpkg 1.18.19).
# -uc, --unsigned-changes
# Do not sign the .buildinfo and .changes files (long option since
# dpkg 1.18.8).
# -b Equivalent to --build=binary or --build=any,all.
# -S Equivalent to --build=source
# -d, --no-check-builddeps do not check build dependencies and conflicts.
# --ignore-builtin-builddeps
# do not check builtin build dependencies.
#The -us -uc tell it there is no need to GPG sign the package. the -b is build binary
dpkg-buildpackage -us -uc -b -d
#The -us -uc tell it there is no need to GPG sign the package. the -S is build source package
#dpkg-buildpackage -us -uc -S
#dpkg-buildpackage -S
# build source and binary package
#dpkg-buildpackage -us -uc -d
#dpkg-buildpackage -d
C++
1
https://gitee.com/kl222/ChineseChessControl.git
git@gitee.com:kl222/ChineseChessControl.git
kl222
ChineseChessControl
ChineseChessControl
master

搜索帮助