-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_all.sh
More file actions
executable file
·35 lines (25 loc) · 797 Bytes
/
build_all.sh
File metadata and controls
executable file
·35 lines (25 loc) · 797 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
30
31
32
33
34
35
#!/bin/bash
# Create the directory for the iso files produced
mkdir -p "iso-files"
# Loop through each subdirectory in the current directory
for subdir in */; do
# Remove the trailing slash from the directory name
subdir="${subdir%/}"
# Check if the entry is a directory
if [ -d "$subdir" ] && [ "$subdir" != "iso-files" ]; then
echo "Entering $subdir"
# Navigate into the subdirectory
cd "$subdir" || exit
# Go to the build directory
mkdir -p build
cd build
# Configure CMake
cmake ..
# Make the iso file
make livecd
# Put in a directory that contains all of the iso files
cp myos.iso "../../iso-files/$subdir.iso"
echo "Exiting $subdir"
cd ../..
fi
done