-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-cmd.sh
44 lines (31 loc) · 1.05 KB
/
build-cmd.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
41
42
43
#!/usr/bin/env bash
cd "$(dirname "$0")"
# turn on verbose debugging output for parabuild logs.
exec 4>&1; export BASH_XTRACEFD=4; set -x
# make errors fatal
set -e
# complain about unreferenced environment variables
set -u
if [ -z "$AUTOBUILD" ] ; then
exit 1
fi
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]] ; then
autobuild="$(cygpath -u $AUTOBUILD)"
else
autobuild="$AUTOBUILD"
fi
top="$(pwd)"
stage="$top/stage"
# load autobuild provided shell functions and variables
source_environment_tempfile="$stage/source_environment.sh"
"$autobuild" source_environment > "$source_environment_tempfile"
. "$source_environment_tempfile"
# apply_patch
source "$(dirname "$AUTOBUILD_VARIABLES_FILE")/functions"
# load autobuild provided shell functions and variables
SSE2NEON_SOURCE_DIR="sse2neon"
apply_patch "patches/fix-clang-build.patch" $SSE2NEON_SOURCE_DIR
mkdir -p "$stage/include/sse2neon"
cp -a $SSE2NEON_SOURCE_DIR/*.h "$stage/include/sse2neon"
mkdir -p "$stage/LICENSES"
cp -a "$SSE2NEON_SOURCE_DIR/LICENSE" "$stage/LICENSES/sse2neon.txt"