Added some compability for command name differences on different distros. Added some requirements documentation.

This commit is contained in:
neviyn 2017-10-31 01:33:37 +00:00
parent e636f24995
commit cf1d4e59e0
2 changed files with 15 additions and 2 deletions

View File

@ -2,3 +2,12 @@
## Synopsis ## Synopsis
A hobby OS written in Nim. A hobby OS written in Nim.
## Requirements
* nim
* clang
* glibc-32
* nasm
* grub2
* make
* qemu

View File

@ -3,4 +3,8 @@ rm -r isodir
mkdir -p isodir/boot/grub mkdir -p isodir/boot/grub
cp myos.bin isodir/boot/kernel cp myos.bin isodir/boot/kernel
cp grub.cfg isodir/boot/grub/grub.cfg cp grub.cfg isodir/boot/grub/grub.cfg
if command -v grub-mkrescue; then
grub-mkrescue -o myos.iso isodir grub-mkrescue -o myos.iso isodir
elif command -v grub2-mkrescue; then
grub2-mkrescue -o myos.iso isodir
fi