ThiesyyyOS/_.sh

17 lines
281 B
Bash
Raw Normal View History

2018-06-14 13:00:44 +02:00
#!/bin/bash
#add build-nr
build=$(cat build)
sed "s/######/${build}/g" src/main.asm > tmp/main.asm
build=$((build+1))
echo $build > build
#compile
nasm src/boot.asm -o tmp/boot.bin
nasm tmp/main.asm -o tmp/main.bin
#connect
cat tmp/boot.bin tmp/main.bin > out/os.img
sh run.sh