Successfully able to create a disk-image file
- 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
This commit is contained in:
25
scripts/build.py
Executable file
25
scripts/build.py
Executable file
@ -0,0 +1,25 @@
|
||||
#!/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("..")
|
||||
Reference in New Issue
Block a user