-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
executable file
·53 lines (40 loc) · 994 Bytes
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# This option is used to exit the script as
# soon as a command returns a non-zero value.
set -o errexit
path=`dirname $0`
PLUGIN_NAME=libplugin.openssl
#
# Canonicalize relative paths to absolute paths
#
pushd $path > /dev/null
dir=`pwd`
path=$dir
popd > /dev/null
#
# OUTPUT_DIR
#
OUTPUT_DIR=$path/build
# Clean build
if [ -e "$OUTPUT_DIR" ]
then
rm -rf "$OUTPUT_DIR"
fi
# Create dst dir
mkdir "$OUTPUT_DIR"
#
# Build
#
cd "$path"
echo "========================================================================"
echo "Packaging plugin for SDK..."
./build_sdk.sh "$OUTPUT_DIR" $PLUGIN_NAME
echo "Done."
# echo "========================================================================"
# echo "Packaging plugin for Enterprise"
# ./build_enterprise.sh "$OUTPUT_DIR" $PLUGIN_NAME
# echo "Done."
echo "========================================================================"
echo "Build successful."
echo "Plugin ZIP files available at: '$OUTPUT_DIR'"
cd -