Nigel
891085e151
- Created a scripts folder - Written instructions on how to create the disk image - Working on a python build script that executes all other scripts The scripts folder should contain scripts to build a full installation of our operating system. Scripts like creating a filesystem should be found here
25 lines
424 B
Python
Executable File
25 lines
424 B
Python
Executable File
#!/usr/bin/python3
|
|
import os
|
|
import subprocess
|
|
|
|
|
|
print("Building BarinkOS")
|
|
|
|
|
|
# list and run build scripts
|
|
print("Running build-scripts")
|
|
os.chdir("scripts")
|
|
|
|
scripts=os.listdir()
|
|
currentScript=os.path.basename(__file__)
|
|
|
|
if currentScript in scripts:
|
|
scripts.remove(currentScript)
|
|
|
|
|
|
for script in scripts:
|
|
print(os.getcwd())
|
|
print("Running:" + script)
|
|
subprocess.call(script, cwd=os.getcwd())
|
|
|
|
os.chdir("..") |