]> git.stg.codes - stg.git/blob - functest/build.sh
Remove x2str/unsigned2str in favor of std::to_string.
[stg.git] / functest / build.sh
1 #!/bin/sh
2
3 BASEPATH=$1
4
5 if [ "$BASEPATH" == "" ]
6 then
7     printf "Usage: $0 <path>\n"
8     exit -1
9 fi
10
11 if [ ! -d "$BASEPATH" ]
12 then
13     printf "Path '$BASEPATH' does not exist or not a directory.\n"
14     exit -1
15 fi
16
17 cd "$BASEPATH/stg"
18 mkdir build
19 cd build
20 cmake -DBUILD_STG=ON -DBUILD_SGCONF=ON ..
21 make