2005-11-30 01:05:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
mk-dirs
|
|
|
|
cd ../../
|
|
|
|
PR=`pwd`
|
|
|
|
cd $PR/make
|
|
|
|
|
|
|
|
MAJ_SSS_NO=`cat majver.txt`
|
|
|
|
MIN_SSS_NO=`cat minver.txt`
|
|
|
|
REV_SSS_NO=`cat revver.txt`
|
|
|
|
|
|
|
|
export BLD_NO=$MAJ_SSS_NO.$MIN_SSS_NO.$REV_SSS_NO
|
|
|
|
|
|
|
|
HOST_ARCH=`uname -a | grep -c x86_64`
|
|
|
|
if [ $HOST_ARCH -gt 0 ]
|
|
|
|
then ARCH_LIB=64
|
|
|
|
else
|
|
|
|
ARCH_LIB=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cd $PR/c_jwrapper/src
|
|
|
|
($JAVA_HOME/bin/javac com/novell/casa/MiCasa.java)
|
|
|
|
RCODE=$?
|
|
|
|
if(test $RCODE != 0)
|
|
|
|
then
|
|
|
|
exit $RCODE
|
|
|
|
fi
|
|
|
|
|
|
|
|
($JAVA_HOME/bin/jar cvf ../../lib$ARCH_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
|
|
|
|
exit $RCODE
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ../jnsscs
|
|
|
|
(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=lib XTRA=dbg MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-I\"$JAVA_HOME/include\" -I\"$JAVA_HOME/include/linux\" -DDEBUG -g -DSSCS_LINUX_PLAT_F" $2 $3 $4 $5)
|
|
|
|
RCODE=$?
|
|
|
|
rm -f $COMMON_FILES
|
|
|
|
if(test $RCODE != 0)
|
|
|
|
then
|
|
|
|
exit $RCODE
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
|