PlainOsBuilder/build.sh
2023-12-23 20:19:18 +03:00

28 lines
316 B
Bash
Executable File

#!/bin/sh
#Add repos in 0-download-src.sh
CC=cc
RTFS=$(pwd)/rootfs
#Tests
for i in tests/*; do
if ! env CC=$CC $i; then
echo "Build failed"
exit 1
fi
done
#Clean
./clean.sh
#Make rootfs
mkdir rootfs
#Build system
for i in stages/*; do
if ! env RTFS=$RTFS $i; then
echo "Build failed"
exit 1
fi
done