Skip to content
Snippets Groups Projects
Commit 75985788 authored by Jakob Kirsch's avatar Jakob Kirsch
Browse files

add exclude feature

parent 6d7b3703
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ push:
software: os.img
mkdir software
bash makesoftware.sh
python3 makebase.py
python3 makebase.py $(EXCLUDE)
dd if=$< bs=512 count=1 > tmp.img
mv tmp.img os.img
cat base.img >> os.img
......@@ -56,7 +56,7 @@ installer:
nasm -f bin -o os.img os.asm
mkdir software
bash makesoftware.sh
python3 makebase.py
python3 makebase.py $(EXCLUDE)
dd if=os.img bs=512 count=1 > tmp.img
mv tmp.img os.img
cat base.img >> os.img
......
import os, shutil
import os, shutil, sys
files = []
for r, _, f in os.walk("software/"):
for file in f:
if os.path.abspath(os.path.join(file, r)) in [os.path.abspath(i) for i in sys.argv]:
continue
if len(files) > 32:
print("Limit of files reached")
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment