Debian Codegraph @

src/batch_build_core

raw
1 #!/bin/sh
2
3 # ------------------------------------------------
4 # Setup C::B application to run the *binaries* (!)
5 # ------------------------------------------------
6 export CB_APP=/home/[foo]/bin/cb
7 # ------------------------------------------------
8 # Setup folder to the C::B *sources* from SVN (!)
9 # ------------------------------------------------
10 export CB_SRC=/home/[foo]/src/codeblocks/src
11
12 # -------------------------------------------
13 # Usually below here no changes are required.
14 # -------------------------------------------
15 if [ -e $CB_APP ]; then
16 if [ -d $CB_SRC ]; then
17 export CB_PARAMS="--batch-build-notify --no-batch-window-close"
18 export CB_TARGET="--target=All"
19 export CB_CMD="--build $CB_SRC/CodeBlocks-unix.cbp"
20
21 echo $CB_APP $CB_PARAMS $CB_TARGET $CB_CMD
22 $CB_APP $CB_PARAMS $CB_TARGET $CB_CMD
23 echo "Do not forget to run 'update' after successful build!"
24 else
25 echo "C::B sources at '$CB_SRC' not found."
26 fi
27 else
28 echo "File '$CB_APP' does not exists."
29 fi