forked from OpenTabletDriver/OpenTabletDriver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·35 lines (31 loc) · 695 Bytes
/
build.sh
File metadata and controls
executable file
·35 lines (31 loc) · 695 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
#!/usr/bin/env bash
# Simple bash script to easily build on linux to verify functionality.
# Uses the same commands as those found in the PKGBUILD for the AUR
# package.
output="bin"
config="Release"
options=()
while [ $# -gt 0 ]; do
case "$1" in
-o=*|--output=*)
output="${1#*=}"
;;
-o|--output)
output="$2"
shift
;;
-c=*|--configuration=*)
config="${1#*=}"
;;
-c|--configuration)
config="$2"
shift
;;
*)
options+=("$1")
;;
esac
shift
done
# provide defaults, then pass everything else as-is
. "$(dirname ${BASH_SOURCE[0]})"/eng/linux/package.sh -o "${output}" -c "${config}" "${options[@]}"