forked from synfig/synfig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2-build-debug.sh
More file actions
executable file
·39 lines (32 loc) · 809 Bytes
/
2-build-debug.sh
File metadata and controls
executable file
·39 lines (32 loc) · 809 Bytes
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
#!/usr/bin/env bash
#
# = Usage: =
# ./build.sh [package] [mode]
#
# where:
# - [package] is all|etl|core|studio
# - [mode] is full|clean|configure|make
#
#
# = Examples: =
#
# == Standard mode ==
# Configure and (re)build:
# ./build.sh
# Configure and make clean build:
# ./build.sh all full
# Quick rebuild (without configure):
# ./build.sh all make
# Quick rebuild of synfig-core (without configure):
# ./build.sh core make
set -e
export TYPE="_debug"
export DEBUG=1
WORKDIR=`dirname "$0"`
pushd "${WORKDIR}" > /dev/null
WORKDIR=`pwd`
popd > /dev/null
[ -d "${WORKDIR}/${TYPE}" ] || mkdir "${WORKDIR}/${TYPE}"
[ -f "${WORKDIR}/build.conf" ] && cp -f "${WORKDIR}/build.conf" "${WORKDIR}/${TYPE}/build.conf"
cd "${WORKDIR}/${TYPE}"
bash "${WORKDIR}/autobuild/build.sh" "$1" "$2"