File: batch_build_all

package info (click to toggle)
codeblocks 16.01%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 85,420 kB
  • ctags: 90,657
  • sloc: cpp: 665,947; ansic: 48,306; sh: 32,198; xml: 29,690; makefile: 6,054; asm: 3,827; python: 3,251; f90: 1,202; pascal: 839; yacc: 291; perl: 261; sed: 16
file content (29 lines) | stat: -rwxr-xr-x 1,013 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# ------------------------------------------------
# Setup C::B application to run the *binaries* (!)
# ------------------------------------------------
export CB_APP=/home/[foo]/bin/cb
# ------------------------------------------------
# Setup folder to the C::B *sources* from SVN (!)
# ------------------------------------------------
export CB_SRC=/home/[foo]/src/codeblocks/src

# -------------------------------------------
# Usually below here no changes are required.
# -------------------------------------------
if [ -e $CB_APP ]; then
  if [ -d $CB_SRC ]; then
    export CB_PARAMS="--batch-build-notify --no-batch-window-close"
    export CB_TARGET="--target=All"
    export CB_CMD="--build $CB_SRC/CodeBlocks-unix.workspace"

    echo $CB_APP $CB_PARAMS $CB_TARGET $CB_CMD
    $CB_APP $CB_PARAMS $CB_TARGET $CB_CMD
    echo "Do not forget to run 'update' after successful build!"
  else
    echo "File '$CB_APP' does not exists."
  fi
else
  echo "C::B sources at '$CB_SRC' not found."
fi