[ActiveLock-Development] CVS: activelock build.bat,1.4,1.5
Brought to you by:
ialkan
From: Thanh H. T. <th...@us...> - 2004-05-16 18:44:50
|
Update of /cvsroot/activelock/activelock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30443 Modified Files: build.bat Log Message: Changes for 2.0.7. See comments inside file. Index: build.bat =================================================================== RCS file: /cvsroot/activelock/activelock/build.bat,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- build.bat 3 Nov 2003 07:34:38 -0000 1.4 +++ build.bat 16 May 2004 18:44:42 -0000 1.5 @@ -25,14 +25,19 @@ rem 10.13.03 - th2tran - Added more comments and instructions. rem - Corrected if-test syntax...both operands needs to be inside quotes. rem - Use errorlevel to detect compile failure +rem 04.28.04 - th2tran - Added compile-alugen as a stand-alone target +rem 05.06.04 - th2tran - Added unreg target to unregister existing libraries +rem - register common dependency alutil.dll at the start rem rem =================================================================================== rem Usage: To run a build of ActiveLock, run the following command: rem > _build <target> rem List of available targets: rem - all (default) +rem - unreg rem - skip-activelock (same as all except activelock2.dll will not be recompiled) rem - compile-activelock +rem - compile-alugen rem - compile-examples rem - docs rem - installer @@ -46,16 +51,37 @@ rem Delete previous VB compilation log file del build.log + +rem Register common dependency: alutil.dll +echo Registering alutil.dll... +regsvr32 /s bin\alutil.dll + +if "%1" == "unreg" goto unreg if "%1" == "installer" goto installer if "%1" == "docs" goto docs if "%1" == "compile-activelock" goto compile-activelock if "%1" == "compile-examples" goto compile-examples +if "%1" == "compile-alugen" goto compile-alugen + +rem ========================================================================================= +rem Unregister existing libraries +rem ========================================================================================= +:unreg +echo Unregistering alutil.dll... +regsvr32 /s /u bin\alutil.dll +echo Unregistering activelock2.dll... +regsvr32 /s /u bin\activelock2.dll +echo Unregistering alugen.dll... +regsvr32 /s /u ..\alugen\lib\alugen.dll +if "%1" == "unreg" goto done rem ========================================================================================= rem Compile ActiveLock Libraries rem ========================================================================================= :all + rem alutil.dll +:compile-alutil rem Make sure we unregister it before rebuilding, so that we don't leave junk old version stuff in the Registry echo Unregistering alutil.dll... regsvr32 /s /u bin\alutil.dll @@ -97,6 +123,7 @@ vb6.exe /make ..\alugen\app\ALUGEN.vbp /out build.log if errorlevel == 1 goto error rem move ..\alugen\app\alugen.exe bin\ +if "%1" == "compile-alugen" goto done :compile-examples echo Compiling Examples |