From 80346e52bcfb9805fe2e4420db8fef9263c4edb7 Mon Sep 17 00:00:00 2001 From: derPENGUIN Date: Wed, 26 Mar 2008 15:54:39 +0000 Subject: [PATCH] shell script for building kernel on linux based systems git-svn-id: svn://kolibrios.org@779 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/make.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 kernel/trunk/make.sh diff --git a/kernel/trunk/make.sh b/kernel/trunk/make.sh new file mode 100755 index 0000000000..d49fd1221e --- /dev/null +++ b/kernel/trunk/make.sh @@ -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 + +