Nanite/build.sh
2025-05-31 11:59:11 -04:00

58 lines
903 B
Bash
Executable File

#!/bin/bash
echo --------
echo STARTING
echo --------
read -p "Do you want to clean old build files? (y/n) " yn
case $yn in
y )
echo ---------------------------;
echo Removing Old Build Files...;
echo ---------------------------;
make clean;
echo -----;
echo Done!;
echo -----;
;;
n )
echo ---------;
echo Proceding;
echo ---------;
;;
esac
echo ------------
echo COMPILING OS
echo ------------
make -s
echo ---------
echo Finished!
echo ---------
read -p "Do you want to Start QEMU? (y/n) " yn
case $yn in
y )
echo -------------
echo STARTING QEMU
echo -------------
qemu-system-i386 -chardev pty,id=serial1 \
-serial mon:stdio \
-serial chardev:serial1 \
-audiodev pa,id=speaker \
-machine pcspk-audiodev=speaker \
-fda build/main_floppy.img
echo --------
echo Finshed!
echo --------
;;
n ) echo exiting...;
exit;;
* ) echo invalid response;
exit 1;;
esac