From 13628083171eb36412d2481cc820533cf6d42925 Mon Sep 17 00:00:00 2001 From: "Alexey Teplov (" Date: Tue, 14 Sep 2010 03:54:21 +0000 Subject: [PATCH] Small change git-svn-id: svn://kolibrios.org@1618 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/box_lib/trunk/build.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/build.sh b/programs/develop/libraries/box_lib/trunk/build.sh index 86d5704180..a461d2c5cc 100755 --- a/programs/develop/libraries/box_lib/trunk/build.sh +++ b/programs/develop/libraries/box_lib/trunk/build.sh @@ -1,9 +1,20 @@ #!/bin/bash # This script does for Linux the same as build.bat for DOS, # it compiles the current KolibriOS applications +OutDir=bin +FileName=box_lib.obj +OutFile=$OutDir/$FileName - mkdir bin - fasm -m 16384 box_lib.asm ./bin/box_lib.obj + if [ -d "$OutDir" ]; then + if [ -e "$OutFile" ]; then + echo " >>>> rm -f $OutFile delete old version" + rm -f $OutFile + fi + else + echo "mkdir $OutDir" + mkdir $OutDir + fi + fasm -m 16384 box_lib.asm $OutFile exit 0