File: start.sh

package info (click to toggle)
freeradius 3.2.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,400 kB
  • sloc: ansic: 125,473; sh: 5,860; perl: 4,351; sql: 3,072; python: 1,559; makefile: 621; xml: 62; tcl: 35; sed: 23; ruby: 22
file content (37 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (4)
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
##TODO rip this apart into "configure , make , make deb, make scan and make install" functions
export PANIC_ACTION="gdb -batch -x raddb/panic.gdb %e %p 1>&0 2>&0"

#Configure
if [ "${DO_BUILD}" = 'yes' ]; then 
    CFLAGS="${BUILD_CFLAGS}" ./configure -C\
    --enable-werror \
    --prefix=$HOME/freeradius\
    --with-shared-libs=$LIBS_SHARED \
    --with-threads=$LIBS_OPTIONAL \
    --with-udpfromto=$LIBS_OPTIONAL \
    --with-openssl=$LIBS_OPTIONAL \
    --with-pcre=$LIBS_OPTIONAL \
    --enable-reproducible-builds=${REPRODUCIBLE}
fi

if [ "${DO_BUILD}" = 'no' ]; then 
    ./configure -C --without-modules
fi

# Make
if [ "${DO_BUILD}" = 'yes' ]; then 
    make -j8
fi

# Make scan
if [ "${DO_BUILD}" = 'yes' -a ${CC} = 'clang' ]; then 
    make -j8 scan && [ "$(find build/plist/ -name *.html)" = '' ]
fi

if [ "${DO_BUILD}" = 'yes' ]; then 
    make ci-test
fi

if [ "${DO_BUILD}" = 'no' ]; then 
    cd doc/source; doxygen 3>&1 1>&2 2>&3 | grep -iv '^warning:' | tee doxygen_stderr.log && [ ! -n "$(cat doxygen_stderr.log)" ]
fi