-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_minimal.sh
More file actions
33 lines (28 loc) · 856 Bytes
/
build_minimal.sh
File metadata and controls
33 lines (28 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
CURRENT_FOLDER=$(dirname $(readlink -f "$0"))
export CS_DEV_PATH=${CURRENT_FOLDER}/build-cache/covscript/csdev
cd $CURRENT_FOLDER
if [[ "$#" = 1 && "$1" = "release" ]]; then
echo "Building for release..."
CSPKG_CONFIG="./misc/cspkg_config.json"
else
echo "Building for nightly..."
CSPKG_CONFIG="./misc/cspkg_nightly_config.json"
fi
bash ./misc/unix_build_minimal.sh $1
rm -rf ./build
mkdir -p build/bin
cd build-cache
cp -rf cspkg/build ..
cp -rf covscript/build ..
cp -rf covscript/csdev/* ../build/
cp -rf covscript-curl/build ..
cp -rf covscript-regex/build ..
cp -rf covscript-codec/build ..
cp -rf covscript-process/build ..
cd ..
if [[ "$#" != 1 || "$1" != "release" ]]; then
./build/bin/cs -i ./build/imports ./misc/replace_source.csc ./build/bin/cspkg
fi
cp -rf build-cache/ecs/build .
chmod +x ./build/bin/ecs