forked from KolibriOS/kolibrios
shell script for building kernel on linux based systems
git-svn-id: svn://kolibrios.org@779 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
782a591d6e
commit
80346e52bc
33
kernel/trunk/make.sh
Executable file
33
kernel/trunk/make.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# This script does for linux the same as build.bat for DOS,
|
||||
# it compiles the KoOS kernel, hopefully ;-)
|
||||
|
||||
CLANG=$1;
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "Usage: make.sh [en|ru|ge|et]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
compile()
|
||||
{
|
||||
fasm -m 65536 kernel.asm bin/kernel.mnt
|
||||
rm -f lang.inc
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
if [ ! $CLANG ] ; then
|
||||
usage
|
||||
fi
|
||||
|
||||
for i in "en" "ru" "ge" "et"; do
|
||||
if [ $i == $CLANG ] ; then
|
||||
echo "lang fix $i" > lang.inc
|
||||
compile
|
||||
fi
|
||||
done
|
||||
usage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user