home *** CD-ROM | disk | FTP | other *** search
- @echo off
- if "%1"=="" goto usage
- :jump
- echo %1
- goto %1
-
- :usage
- echo Usage: makeadap PART
- echo PART:
- echo src - fadapt.exe, fstrip.exe
- echo dalib - dalib.a, unilib.a, mhost.o ..
- echo clean - cleans all leftovers from build
- echo Shortcuts:
- echo all (both of the actions - except for clean)
- goto end
-
- :all
- call makeadap src dalib
- goto next
-
- :src
- cd src
- dmake -f makefile.os2
- echo Moving fadapt.exe to ..\bin
- mv fadapt.exe ..\bin
- echo Moving fstrip.exe to ..\bin
- mv fstrip.exe ..\bin
- cd ..
- goto next
-
- :dalib
- cd dalib
- cd pvm3
- dmake -f makefile.os2
- echo Dalib.a and unilib.a, mhost.o, mnode.o, mnode1.o and mcube.o
- echo are being moved to adaptor\lib directory
- echo Don't forget to define environmental variables DALIB and PVM_ROOT !
- mv dalib.a ..\..\lib
- mv unilib.a ..\..\lib
- mv mhost.o mnode.o mnode1.o mcube.o ..\..\lib
- cd ..\..
- goto next
-
- :clean
- cd src
- dmake -f makefile.os2 clean
- cd ..
- cd dalib
- cd pvm3
- dmake -f makefile.os2 clean
- cd ..\..
- echo Cleaning is done
- goto next
-
- :next
- shift
- if not "%1" == "" goto jump
- :end