/[CCFs]/ccf-setup.csh
ViewVC logotype

Annotation of /ccf-setup.csh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations)
Fri Dec 12 14:08:16 2014 UTC (9 years, 11 months ago) by ccflib
Branch: MAIN
Changes since 1.7: +9 -9 lines
File MIME type: application/x-csh
Fixed some typos and removed setsas.csh output

1 ccflib 1.8 #! /bin/tcsh
2 ccflib 1.1 #
3     # ccf-setup.csh
4     #
5     # Setup to build CCF from user's home
6     #
7 ccflib 1.8 # $Id: ccf-setup.csh,v 1.7 2014/12/12 13:47:43 ccflib Exp $
8 ccflib 1.1
9    
10 ccflib 1.6 set host=`hostname | cut -d. -f1`
11 ccflib 1.5
12 ccflib 1.7 # Identify machine OS name and kernel type
13    
14     set osname=`uname -s`
15    
16     set cputype=`uname -m`
17    
18     switch ($cputype)
19     case i[3,4,5,6]86:
20     set kernelbits=32
21     set refhost="sasbld01"
22     breaksw
23     case x86_64:
24     set kernelbits=64
25     set refhost="sasbld02"
26     breaksw
27     endsw
28    
29     # Define CCFLIB_HOME
30    
31 ccflib 1.5 switch ($host)
32 ccflib 1.6 case sasbld01:
33 ccflib 1.1 setenv CCFLIB_HOME "/home/ccflib"
34     breaksw
35     default :
36     setenv CCFLIB_HOME "/ccfbuild"
37     breaksw
38     endsw
39    
40 ccflib 1.7 # Define where is the CCF development software
41    
42     setenv CCFDEV ${CCFLIB_HOME}/ccfdev
43    
44 ccflib 1.8 if ( ! -d $CCFDEV ) then
45     echo "ccf-setup.csh: $CCFDEV not found! - Abort"
46     return
47 ccflib 1.7 endif
48    
49    
50     # Set the CVS access to CCF package repository
51    
52 ccflib 1.8 setenv CVSROOT ${CCFLIB_HOME}/ccfcvs
53 ccflib 1.7
54     # Heasoft
55 ccflib 1.1
56 ccflib 1.7 setenv HEADAS "/sasbuild/local/${refhost}/headas/architecture"
57 ccflib 1.8 if ( ! -d $HEADAS ) then
58     echo "ccf-setup.csh: $HEADAS does not exist! - Abort"
59 ccflib 1.7 return
60 ccflib 1.1 endif
61 ccflib 1.7 source ${HEADAS}/headas-init.csh
62 ccflib 1.1
63 ccflib 1.7 # SAS
64 ccflib 1.1
65     if ( ! -f "$HOME/setsas.csh" ) then
66     /sas/bin/confsas
67     endif
68    
69 ccflib 1.8 source $HOME/setsas.csh > /dev/null
70 ccflib 1.1
71     setenv SAS_MEMORY_MODEL Low
72    
73 ccflib 1.7 # Add some useful perl modules
74 ccflib 1.1
75 ccflib 1.7 if ( $?PERL5LIB ) then
76     setenv PERL5LIB ${CCFLIB_HOME}/perl\:$PERL5LIB
77     else
78     setenv PERL5LIB ${CCFLIB_HOME}/perl
79     endif
80 ccflib 1.1
81 ccflib 1.7 # From CCFDEV/setup.csh
82 ccflib 1.1
83 ccflib 1.7 setenv PERL5LIB ${CCFDEV}/lib/perl5:${PERL5LIB}
84 ccflib 1.1
85     # Add the scripts in $CCFLIB_HOME/bin to PATH
86    
87 ccflib 1.2 setenv PATH ${CCFLIB_HOME}/bin\:$PATH
88 ccflib 1.7
89     # Unsets MAKE if set
90    
91     if ( $?MAKE ) then
92     echo "ccf-setup.csh, WARNING: Your environment sets MAKE=$MAKE. It will be unset"
93     unsetenv MAKE
94     endif
95    
96     # Show it
97    
98     echo
99     echo "SAS build reference information"
100     echo "==============================="
101     echo
102     sasversion -V 2
103    
104     echo
105     echo "CCF building tools"
106     echo "=================="
107     echo
108     deceit -v
109     ccfextseq -v
110     echo
111     echo "CCF development environment"
112     echo "==========================="
113     echo
114     echo "CCFLIB_HOME = $CCFLIB_HOME"
115     echo "CCFDEV = $CCFDEV"
116     echo "CCF repository = $CVSROOT"
117     echo
118     echo "*** Ready !"
119     echo

  ViewVC Help
Powered by ViewVC 1.1.27