File tree 4 files changed +21
-11
lines changed
4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 27
27
exit -1
28
28
fi
29
29
30
- mkdir build
30
+ BUILD_DIR=build
31
+
32
+ mkdir $BUILD_DIR
31
33
echo " [+] build directory created"
32
- cd build
34
+ cd $BUILD_DIR
33
35
cmake -G " CodeLite - Unix Makefiles" -DUSE_QT4=OFF -DCMAKE_INSTALL_PREFIX:PATH=$( pwd) ..
34
36
cmake --build . --target install
35
37
Original file line number Diff line number Diff line change 27
27
exit -1
28
28
fi
29
29
30
- mkdir build_qt4
30
+ BUILD_DIR=build_qt4
31
+
32
+ mkdir $BUILD_DIR
31
33
echo " [+] build directory created"
32
- cd build_qt4
33
- cmake -G " CodeLite - Unix Makefiles" -D USE_QT4=ON ../
34
- make
35
- cd ..
36
- cp build_qt4/commander/bearcommander ./build_qt4/
37
- echo " [+] Success! You can check the executable here:"
38
- pwd
34
+ cd $BUILD_DIR
35
+ cmake -G " CodeLite - Unix Makefiles" -DUSE_QT4=ON -DCMAKE_INSTALL_PREFIX:PATH=$( pwd) ..
36
+ cmake --build . --target install
37
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
START_DIR=$( pwd)
3
3
SOURCE_DIR=$1
4
+ BUILD_DIR=$2
4
5
TESTS_DIR=" test_cases"
5
6
6
7
if [[ " $SOURCE_DIR " == " " ]]; then
17
18
mv bearparser_tests $TESTS_DIR
18
19
fi
19
20
20
- BCMD_DIR=$( pwd) /build/
21
+ if [[ " $BUILD_DIR " == " " ]]; then
22
+ BUILD_DIR=build
23
+ fi
24
+ echo " Build Dir: " " $BUILD_DIR "
25
+
26
+ BCMD_DIR=$( pwd) /$BUILD_DIR /
21
27
FAILED=0
22
28
23
29
tests_list=$SOURCE_DIR /" tests_list.txt"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ./test.sh $( pwd) build_qt4
3
+
You can’t perform that action at this time.
0 commit comments