-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
30 lines (27 loc) · 886 Bytes
/
Copy pathbuild.sh
File metadata and controls
30 lines (27 loc) · 886 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
build_mode="shared"
build_type="release"
read -p "Change default build options (Y/N): " choice
choice=$(echo "$choice" | tr '[:upper:]' '[:lower:]')
if [ "$choice" == "y" ]; then
read -p "Build mode (1 for static, 2 for shared): " option1
if [ "$option1" == "1" ]; then
build_mode="static"
elif [ "$option1" == "2" ]; then
build_mode="shared"
else
echo "Invalid option for build mode. Using default."
fi
read -p "Build type (1 for debug, 2 for release): " option2
if [ "$option2" == "1" ]; then
build_type="debug"
elif [ "$option2" == "2" ]; then
build_type="release"
else
echo "Invalid option for build type. Using default."
fi
else
echo "Using default options..."
fi
echo "Build mode is $build_mode"
echo "Build type is $build_type"
scons build_mode="$build_mode" build_type="$build_type"