#!/bin/bash TOP=../.. BR=.. PR=../ set -x mk-dirs cd $TOP/make MAJ_SSS_NO=`cat majver.txt` MIN_SSS_NO=`cat minver.txt` REV_SSS_NO=`cat revver.txt` INT_BLD_NO=`cat ibuild.txt` MAJ_BLD_NO=`cat mbuild.txt` if [ $1 = m ] then let MAJ_BLD_NO=MAJ_BLD_NO+1 export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO.$MAJ_BLD_NO else let INT_BLD_NO=INT_BLD_NO+1 export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO.$MAJ_BLD_NO.$INT_BLD_NO fi cd $PR/c_jwrapper/src ($JAVA_HOME/bin/javac com/novell/casa/MiCasaException.java com/novell/casa/NetCredential.java com/novell/casa/MiCasa.java) RCODE=$? if(test $RCODE != 0) then exit $RCODE fi ($JAVA_HOME/bin/jar cvf ../../lib/miCASA.jar com/novell/casa/MiCasa.class com/novell/casa/NetCredential.class com/novell/casa/MiCasaException.class) RCODE=$? if(test $RCODE != 0) then exit $RCODE fi ($JAVA_HOME/bin/javah -d ../../include com.novell.casa.MiCasa) RCODE=$? if(test $RCODE != 0) then pwd exit $RCODE fi cd ../jnsscs (../$BR/$GNU_I/make -I ../$BR/make -f makefile ROOT=../$PR PLAT=w32 MODULE=client BLD_VER=\"$BLD_NO\" XTRA_CFLAGS="-I\"..\..\include\" -I\"$JAVA_HOME\include\" -I\"$JAVA_HOME\include\win32\" -D\"N_PLAT_CLIENT\" -MT -Ox " XTRA=md $2 $3 $4 $5 $6) RCODE=$? if(test $RCODE != 0) then exit $RCODE else exit 0 fi