-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·58 lines (54 loc) · 1.34 KB
/
setup.sh
File metadata and controls
executable file
·58 lines (54 loc) · 1.34 KB
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
54
55
56
57
#!/bin/bash
# ExecuTools Setup Script
#
# This script is a convenient wrapper around the Makefile.
# For more control, use the Makefile directly:
# make help - Show all available targets
# make cpp - Build C++ component only
# make python - Build Python component only
# make clean - Clean all artifacts
set -e # Exit on error
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${SCRIPT_DIR}"
# Parse command line arguments
case "$1" in
clean)
echo "Cleaning build environment..."
make clean
exit 0
;;
cpp)
echo "Building C++ component only..."
make cpp
exit 0
;;
python)
echo "Building Python component only..."
make python
exit 0
;;
test)
echo "Running tests..."
make test
exit 0
;;
help|-h|--help)
make help
exit 0
;;
"")
# No arguments - build everything
echo "Building all components..."
make all
echo ""
echo "Setup complete!"
echo "To activate the Python environment: source .venv/bin/activate"
exit 0
;;
*)
echo "Unknown option: $1"
echo "Run './setup.sh help' for usage information"
exit 1
;;
esac