SaturnArch/build.sh
Lukas Plevac b6d5d2e824
All checks were successful
Build / build (push) Successful in 25m21s
Build bug fix
2024-10-28 23:10:22 +01:00

24 lines
408 B
Bash
Executable File

#remove old files
rm -rf ./work
rm -rf ./out
for f in ./versions/*; do
if [ -d "$f" ]; then
rm -rf ./work
# clean before build
rm -rf ./airootfs/root/*
rm -f ./profiledef.sh
# copy version files
cp "$f/profiledef.sh" .
cp -r "$f/airootfs"/* ./airootfs/root/
# build it
mkarchiso -v -o ${PWD}/out ${PWD}
fi
done
# clean after build
rm -rf ./airootfs/root/*
rm -f ./profiledef.sh