-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·26 lines (24 loc) · 1.01 KB
/
build.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
#!/bin/sh
#
# Compiles the project
#
SOURCE_DIR="./src"
SOURCE_DIR_NESTED="${SOURCE_DIR}/de/mpi_cbg/revant"
BUILD_DIR="./bin"
DEBUGGING_INFO="1" # 0/1
COMPILER_FLAGS="-deprecation" # "-deprecation -Xlint"
if [ ${DEBUGGING_INFO} -eq 0 ]; then
COMPILER_FLAGS="${COMPILER_FLAGS} -g:none"
fi
if [ ! -e ${BUILD_DIR} ]; then
mkdir ${BUILD_DIR}
fi
rm -rf ${BUILD_DIR}
mkdir ${BUILD_DIR}
javac ${COMPILER_FLAGS} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/util/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/factorize/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/intervalgraph/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/fragments/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/consensus/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/graphics/*.java
javac ${COMPILER_FLAGS} -cp ${BUILD_DIR} -d ${BUILD_DIR} ${SOURCE_DIR_NESTED}/biology/*.java