~ubuntu-branches/ubuntu/quantal/ncbi-tools6/quantal

1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
1
#!/bin/sh
2
#
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
3
# $Id: build.me64,v 6.3 2008/01/25 19:59:38 ucko Exp $
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
4
#
5
# W A R N I N G ! ! !
6
# That script is intended for internal use in NCBI only
7
#
8
#
9
NCBI=/netopt/ncbi_tools/ncbi64
10
PATH=/usr/bin:/bin:/sbin:/usr/sbin:/usr/ccs/bin:$NCBI/bin:$PATH
11
export PATH NCBI
12
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
13
#check that we're running within NCBI
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
14
MYDOMAIN=`grep '^domain' /etc/resolv.conf |awk '{print $2}'`
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
15
test -z "$MYDOMAIN"  &&  MYDOMAIN="`hostname --fqdn 2>/dev/null`"
16
test -z "$MYDOMAIN"  &&  MYDOMAIN="`domainname`"
17
if [ `echo "$MYDOMAIN" | grep -c 'nlm[.]nih[.]gov$'` != 1 ] ; then
18
    echo That script is intended for internal use in NCBI only
19
    exit 1
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
20
fi
21
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
22
SCRIPTDIR=/am/ncbiapdata/scripts/build
23
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
24
echo "Building ASNs"
25
( cd asn; rm -f asn.all asnpub.all ; chmod +x *.unx; sh all.unx; sh allpub.unx)
26
27
if [ ! -d "asnstat" ] ; then
28
	mkdir asnstat; ( cd asnstat; sh ../asn/makestat.unx )
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
29
	test -f $SCRIPTDIR/rebuild_asn && $SCRIPTDIR/rebuild_asn .
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
30
fi
31
32
rm -f data/*.val
33
asntool -m asn/asn.all -v data/seqcode.prt -e data/seqcode.val || exit 1
34
asntool -m asn/asn.all -v data/featdef.prt -e data/featdef.val
35
asntool -m asn/asn.all -v data/gc.prt -e data/gc.val
36
cat biostruc/*.asn asn/asn.all >/tmp/big$$.asn
37
asntool -m /tmp/big$$.asn -v data/bstdt.prt -e data/bstdt.val
38
rm -f /tmp/big$$.asn
39
40
#now make needed directories if they're absent
41
mkdir -p include bin lib build altlib shlib >/dev/null 2>&1
42
43
if [ ! -d "network/socks/socks.cstc.4.2" ]; then
44
	cd network/socks; zcat socks.cstc.4.2.pre1.tar.Z | tar xf -;
45
	rm -rf socks.cstc.4.2; mv socks.cstc.4.2.pre1 socks.cstc.4.2;
46
	rm -rf socks.cstc.4.2/rtelnet; rm -rf socks.cstc.4.2/rftp;
47
	cd ../..
48
fi
49
50
if [ ! -d "ncbi/network/encrypt/ripem" ]; then
51
	cd network/encrypt; tar xf ripem.tar ripem/rsaref/source;
52
	cd ../..
53
fi
54
55
echo "building the NCBI C toolkit on Solaris/Sparc in 64-bit mode"
56
cd build
1.1.8 by Aaron M. Ucko
Import upstream version 6.1.20080302
57
dmake -j 3 -f $SCRIPTDIR/make.master LCL_TARGET=sol TARGET_INCLUDE=include \
1.1.1 by Aaron M. Ucko
Import upstream version 6.1.20040616
58
	DBUGEXTRA=-KPIC DBUGEXTRA2=-g COPYBIN=bin CLLIB=cllib all
59
60
exit 0