ビルドスクリプトを変更

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@751 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2013-05-30 01:44:10 +00:00
parent c8f399dae8
commit 0a411ab6a7
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ QR
リリース用ビルドでは開発機・量産機でAES鍵を変えるため、
量産機用ビルドの場合
./build.sh RELEASE
./build.sh PROD
でビルドすること。

View File

@ -6,7 +6,7 @@
#
# 1. common/version.h を変更する
# 2. 開発実機用ビルドは build.sh UNFIXEDKEY
# 製品実機用ビルドは build.sh RELEASE
# 製品実機用ビルドは build.sh PROD
set -u
set -e
@ -21,12 +21,12 @@ function getVersion
}
# フラグ判定
releaseBuild=false;
prodBuild=false;
unfixedKeyBuild=false
for arg in $@
do
if [ "$arg" = 'RELEASE' ]; then
releaseBuild=true
if [ "$arg" = 'PROD' ]; then
prodBuild=true
fi
if [ "$arg" = 'UNFIXEDKEY' ]; then
@ -35,7 +35,7 @@ do
done
OPTION=""
if [ $releaseBuild == "true" ] ; then
if [ $prodBuild == "true" ] ; then
getVersion
BUILD_TYPE=release,development
OPTION="PROD_BUILD=true $VERSION_STR"
@ -66,7 +66,7 @@ else
fi
#リリース用ビルドはツールのみ
if [ $releaseBuild ] || [ $unfixedKeyBuild ] ; then
if [ $prodBuild ] || [ $unfixedKeyBuild ] ; then
exit
fi