Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Commit 27831f0

Browse files
committed
(feat): Modified Build Script
1 parent 467a339 commit 27831f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build_script.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/bash
22

3-
GREEN='\033[1;32m' # Change to bold green
3+
GREEN='\033[1;32m'
44
RED='\033[0;31m'
55
ORANGE='\033[0;33m'
66
BOLD='\033[1m'
77
RESET='\033[0m'
88

9-
# Check if terminal supports ANSI escape codes
109
if [[ "$TERM" != "xterm-256color" ]] && ! command -v tput &> /dev/null; then
1110
echo "Warning: ANSI escape codes not supported. Falling back to basic text formatting."
1211
# Define basic text formatting functions
@@ -16,10 +15,9 @@ if [[ "$TERM" != "xterm-256color" ]] && ! command -v tput &> /dev/null; then
1615
orange() { echo -e "${ORANGE}$1${RESET}"; }
1716
reset() { echo -e "$1"; }
1817
else
19-
# Define functions using tput for terminal text formatting
2018
bold() { tput bold; echo -e "$1"; tput sgr0; }
2119
red() { tput setaf 1; echo -e "$1"; tput sgr0; }
22-
green() { tput setaf 2; tput bold; echo -e "$1"; tput sgr0; } # Modify green to be bold
20+
green() { tput setaf 2; tput bold; echo -e "$1"; tput sgr0; }
2321
orange() { tput setaf 3; echo -e "$1"; tput sgr0; }
2422
reset() { tput sgr0; echo -e "$1"; }
2523
fi
@@ -30,7 +28,6 @@ echo "Version: 0.1.0-beta (1)"
3028
echo "Copyright (c) 2024 - ScribbleLabApp. All rights reserved."
3129
echo ""
3230

33-
# Check for required tools
3431
if ! command -v cmake &> /dev/null; then
3532
red "Error: cmake is not installed."
3633
exit 1
@@ -41,7 +38,6 @@ if ! command -v make &> /dev/null; then
4138
exit 1
4239
fi
4340

44-
# Build process
4541
orange "Creating build folder..."
4642
mkdir -p build
4743
cd build

0 commit comments

Comments
 (0)