-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean_build.sh
More file actions
executable file
·29 lines (23 loc) · 975 Bytes
/
clean_build.sh
File metadata and controls
executable file
·29 lines (23 loc) · 975 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
#!/bin/bash
# Ask the user for the base directory
read -p "Please enter your base directory (e.g., /home/[yournetid]): " BASE_DIR
# Validate if the input is not empty
if [ -z "$BASE_DIR" ]; then
echo "Base directory cannot be empty!"
return 1
fi
echo "Cleaning up the built derecho and cascade under $BASE_DIR/opt-dev"
rm -rf "$BASE_DIR/opt-dev/include/derecho"
rm -rf "$BASE_DIR/opt-dev/include/cascade"
rm -rf "$BASE_DIR/opt-dev/lib/libderecho*"
rm -rf "$BASE_DIR/opt-dev/lib/libcascade*"
rm -rf "$BASE_DIR/opt-dev/lib/cmake/cascade"
rm -rf "$BASE_DIR/opt-dev/lib/cmake/derecho"
rm -rf "$BASE_DIR/opt-dev/bin/cascade*"
rm -rf "$BASE_DIR/opt-dev/share/derecho"
echo "removed derecho, cascade dependencies"
if [ $# -gt 0 ] && [ "$1" = "py" ]; then
echo "removed cascade_py packages"
rm -rf "$BASE_DIR/.local/lib/python3.10/site-packages/derecho"
rm -rf "$BASE_DIR/.local/lib/python3.10/site-packages/derecho.cascade-1.0rc0.dist-info"
fi