33 lines
		
	
	
		
			772 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			772 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| set -x
 | |
| mk-dirs
 | |
| TOP=../..
 | |
| PR=../
 | |
| 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_test/c_sharp_sample
 | |
| ($TOP/$GNU_I/make -I $TOP/make -f makefile ROOT=$TOP PLAT=w32 MODULE=cslib BLD_VER=\"$BLD_NO\" XTRA_CFLAGS="-r:../../bin/w32/mdd/Novell.CASA.miCASAWrapper_mdd.dll -target:exe -debug" XTRA=mdd $2 $3 $4 $5 $6)
 | |
| RCODE=$?
 | |
| rm -f $COMMON_FILES
 | |
| if(test $RCODE != 0)
 | |
| then
 | |
| exit $RCODE
 | |
| else
 | |
| exit 0
 | |
| fi
 |