diff --git a/programs/develop/libraries/box_lib/trunk/build.sh b/programs/develop/libraries/box_lib/trunk/build.sh index 86d570418..a461d2c5c 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