mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@778 385bec56-5757-e545-9c3a-d8741f4650f1
45 lines
967 B
Bash
Executable File
45 lines
967 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
################################
|
|
#ビルド用スクリプト
|
|
################################
|
|
#
|
|
# 1. common/version.h を変更する
|
|
|
|
set -u
|
|
set -e
|
|
|
|
# バージョン取得
|
|
function getVersion
|
|
{
|
|
VERSION_MAJOR=$(cat common/version.h |grep VERSION_MAJOR|awk -F' ' '{print $3}'|sed 's/"//g')
|
|
VERSION_MINOR=$(cat common/version.h |grep VERSION_MINOR|awk -F' ' '{print $3}'|sed 's/"//g')
|
|
VERSION_MICRO=$(cat common/version.h |grep VERSION_MICRO|awk -F' ' '{print $3}'|sed 's/"//g')
|
|
VERSION_STR="VERSION_MAJOR=$VERSION_MAJOR VERSION_MINOR=$VERSION_MINOR VERSION_MICRO=$VERSION_MICRO"
|
|
}
|
|
|
|
OPTION=""
|
|
getVersion
|
|
BUILD_TYPE=development
|
|
OPTION="$VERSION_STR"
|
|
|
|
function buildCore
|
|
{
|
|
command="$1"
|
|
$command
|
|
}
|
|
|
|
function build
|
|
{
|
|
BuildExec="omake BUILD=$BUILD_TYPE FILTER=CTR-TS.*fast $OPTION"
|
|
|
|
cd NetworkUpdater
|
|
buildCore "$BuildExec"
|
|
cd ../
|
|
}
|
|
|
|
#################### 通常ビルド ####################
|
|
# NetworkUpdtaerのビルド
|
|
build
|
|
|
|
cd ../../ |