2005-10-11 21:51:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
mk-dirs
|
|
|
|
cd ../../
|
|
|
|
PR=`pwd`
|
|
|
|
echo $PR
|
|
|
|
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_common
|
|
|
|
#COMMON_FILES=$(ls)
|
|
|
|
#(ln -f $COMMON_FILES $PR/c_micasadk)
|
|
|
|
cd $PR/c_adlib/ad_kw/native
|
2005-10-19 14:05:03 +02:00
|
|
|
moc kwallets_rw.h -o kwallets_rw.moc
|
2006-02-13 17:52:25 +01:00
|
|
|
(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MODULE=shared MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -fstack-protector -g" $2 $3 $4 $5)
|
2005-10-11 21:51:00 +02:00
|
|
|
RCODE=$?
|
|
|
|
rm -f $COMMON_FILES
|
2005-10-19 14:05:03 +02:00
|
|
|
rm kwallets_rw.moc
|
2005-10-11 21:51:00 +02:00
|
|
|
if(test $RCODE != 0)
|
|
|
|
then
|
|
|
|
exit $RCODE
|
|
|
|
else
|
|
|
|
ln -sf $PR/lib$ARCH_LIB/lux/dbg/libkwallets_rw.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libkwallets_rw.so.$MAJ_SSS_NO
|
|
|
|
#ln -sf $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so.$BLD_NO $PR/lib$ARCH_LIB/lux/dbg/libmicasa.so
|
|
|
|
exit 0
|
|
|
|
fi
|