17 lines
281 B
Bash
Executable File
17 lines
281 B
Bash
Executable File
#!/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
|