CASA/shsrc/lshsrc/mk-micasa_ad-dl

36 lines
849 B
Plaintext
Raw Normal View History

#!/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`
INT_BLD_NO=`cat ibuild.txt`
MAJ_BLD_NO=`cat mbuild.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_adlib
(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux EXT=lib MODULE=adlib MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA_CFLAGS="-debug -d:LINUX" XTRA=dbg $2 $3 $4 $5 $6)
RCODE=$?
if(test $RCODE != 0)
then
exit $RCODE
else
#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$MAJ_SSS_NO
#ln -sf ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so.$BLD_NO ../../lib$ARCH_LIB/lux/ndbg/libmicasa.so
exit 0
fi