-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·40 lines (31 loc) · 1.09 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#------------------------------------------------------------
# Fano Framework Elasticsearch Sample Application (https://fanoframework.github.io)
#
# @link https://github.com/fanoframework/fano-elasticsearch
# @copyright Copyright (c) 2019 Zamrony P. Juhara
# @license https://github.com/fanoframework/fano-elasticsearch/blob/master/LICENSE (GPL-3.0)
#--------------------------------------------------------------
#!/bin/bash
#------------------------------------------------------
# Build script for Linux
#------------------------------------------------------
export FANO_DIR="vendor/fano"
if [[ -z "${BUILD_TYPE}" ]]; then
export BUILD_TYPE="prod"
fi
if [[ -z "${USER_APP_DIR}" ]]; then
export USER_APP_DIR="src"
fi
if [[ -z "${UNIT_OUTPUT_DIR}" ]]; then
export UNIT_OUTPUT_DIR="bin/unit"
fi
if [[ -z "${EXEC_OUTPUT_DIR}" ]]; then
export EXEC_OUTPUT_DIR="public"
fi
if [[ -z "${EXEC_OUTPUT_NAME}" ]]; then
export EXEC_OUTPUT_NAME="app.cgi"
fi
if [[ -z "${SOURCE_PROGRAM_NAME}" ]]; then
SOURCE_PROGRAM_NAME="app.pas"
fi
fpc @vendor/fano/fano.cfg @build.cfg ${USER_APP_DIR}/${SOURCE_PROGRAM_NAME}