BarinkOS/scripts/build.py
Nigel 81f7351fe6 Created a few shell scripts to update and create an build of the Kernel/Operating System.
A python script can be run to run the scripts in the correct order and immediatly try the build.
2023-02-20 01:03:46 +01:00

24 lines
574 B
Python
Executable File

#!/usr/bin/python3
import os
import subprocess
print("Give BarinkOS A Test Run")
# list and run build scripts
print("Running build-scripts")
os.chdir("scripts")
scripts=os.listdir()
currentScript=os.path.basename(__file__)
os.chdir("../CoreLib")
print("Building CoreLib")
subprocess.call("make")
os.chdir("../kernel")
print("Building kernel")
subprocess.call("make")
os.chdir("..")
subprocess.call("scripts/update_harddrive.sh", cwd=os.getcwd())
subprocess.call("scripts/create_symbol_lookup.sh", cwd=os.getcwd())
subprocess.call("scripts/run_qemu.sh", cwd=os.getcwd())