-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
33 lines (27 loc) · 690 Bytes
/
Copy pathdeploy.sh
File metadata and controls
33 lines (27 loc) · 690 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
#!/bin/bash
echo "=========================================="
echo " V2V Database Deployment Script (Unix)"
echo "=========================================="
rm -rf build_release
mkdir -p build_release
cd build_release
echo "[1/3] Configuring Release Build..."
cmake -DCMAKE_BUILD_TYPE=Release ..
if [ $? -ne 0 ]; then
exit 1
fi
echo "[2/3] Building..."
cmake --build . --config Release
if [ $? -ne 0 ]; then
exit 1
fi
echo "[3/3] Packaging..."
cpack -C Release
if [ $? -ne 0 ]; then
exit 1
fi
echo "=========================================="
echo " SUCCESS! Package created."
echo "=========================================="
ls *.zip *.tar.gz 2>/dev/null
cd ..