-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·60 lines (52 loc) · 1.72 KB
/
setup.sh
File metadata and controls
executable file
·60 lines (52 loc) · 1.72 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
59
60
#!/bin/bash
# Colors for terminal output
GREEN="\033[1;32m"
CYAN="\033[1;36m"
RESET="\033[0m"
BOLD="\033[1m"
# Directories and files
DIRS=("bin" "docs" "include" "src")
FILES=("docs/OOPD____Project.pdf" "makefile" "readme.md")
# ASCII Art
ASCII_ART="
+-----------------------------------+
| ___ __ __ ___|
|| | |__ | / / \ |\/| |__ |
||/\| |___ |___ \__ \__/ | | |___|
+-----------------------------------+
+--------------------------------------------------+
| :Authored By: |
| __ __ __ |
|| \ |__| |__) | | \ / |__/ | | |\/| /\ |__)|
||__/ | | | \ \__/ \/ | \ \__/ | | /~~\ | \|
| |
| __ ___ ___ |
| |__) /\ | |__ | |
| | /~~\ | |___ |___ |
+--------------------------------------------------+
"
# Function to create directories and files
create_structure() {
echo -e "${CYAN}Setting up project structure...${RESET}"
for dir in "${DIRS[@]}"; do
if [ ! -d "$dir" ]; then
mkdir "$dir"
echo -e "${GREEN}Created directory: $dir${RESET}"
else
echo -e "${CYAN}Directory already exists: $dir${RESET}"
fi
done
for file in "${FILES[@]}"; do
if [ ! -f "$file" ]; then
touch "$file"
echo -e "${GREEN}Created file: $file${RESET}"
else
echo -e "${CYAN}File already exists: $file${RESET}"
fi
done
}
# Execute the function
create_structure
# Display ASCII Art and final message
echo -e "\n${BOLD}${GREEN}${ASCII_ART}${RESET}"
echo -e "${BOLD}${GREEN}Setup Successful!${RESET}"