-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_fast.sh
executable file
·46 lines (37 loc) · 1.04 KB
/
build_fast.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: build.sh <project_path>"
exit 1
fi
path=$1
project=`basename $path`
path_hash=`echo $path | /usr/bin/md5sum | cut -f1 -d" "`
build=/tmp/${path_hash:0:6}
build2=/tmp/`whoami`/$project
lib=/tmp/`whoami`/lib
echo Building $project [$path]...
echo " ...... killing cache directory ......"
rm -rf $build
mkdir -p $build
ln -s $build $build2
cd $build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLINK_DIRECTORIES=$lib -DSYSCONFDIR= $path
make -j 8
make package
#make doc
echo " ...... building silent setup package directory ......"
#rm -rf $build
cmake -DSILENTSETUP=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLINK_DIRECTORIES=$lib -DSYSCONFDIR= $path
make package -j 8
#if [ -f DartConfiguration.tcl ]
#then
#echo "Running CTest"
#ctest -T Start
#ctest -T Configure
#ctest -T Build
#ctest -T Submit
#ctest -T Test
#ctest -T Submit
#fi
cd $path