-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·58 lines (54 loc) · 1.64 KB
/
build.sh
File metadata and controls
executable file
·58 lines (54 loc) · 1.64 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
58
#!/bin/bash
# Batch Script Shell (BSS) Build Script
# This script provides convenient commands for building BSS with different build systems
set -e # Exit on any error
ACTION=${1:-build}
case "$ACTION" in
build)
echo "Building BSS with default Make..."
make
;;
cmake)
echo "Building BSS with CMake..."
make cmake-build
;;
autotools)
echo "Building BSS with Autotools..."
make autotools-build
;;
clean)
echo "Cleaning build artifacts..."
make clean
;;
distclean)
echo "Cleaning all build artifacts including autotools generated files..."
make autotools-distclean
;;
install)
echo "Installing BSS..."
make install
;;
restore-makefile)
echo "Restoring main Makefile..."
make restore-main-makefile
;;
help)
echo "BSS Build Script"
echo "Usage: $0 [action]"
echo ""
echo "Available actions:"
echo " build - Build with default Make (default)"
echo " cmake - Build with CMake"
echo " autotools - Build with Autotools"
echo " clean - Clean build artifacts"
echo " distclean - Clean all including autotools generated files"
echo " install - Install the executable"
echo " restore-makefile - Restore the main Makefile after autotools build"
echo " help - Show this help message"
;;
*)
echo "Unknown action: $ACTION"
echo "Run '$0 help' for available actions"
exit 1
;;
esac