(file) Return to configure CVS log (file) (dir) Up to [Development] / JSOC

  1 arta  1.1 #! /bin/csh -f
  2           
  3           set CLEAN = "no"
  4           set CHKLIBS = "no"
  5           set CCMD = "c"
  6           set LCMD = "l"
  7           
  8           foreach ARG ($argv)
  9               set FLAG = `echo $ARG | awk '{print substr($0, 2)}'`
 10               if ($FLAG == $CCMD) then
 11                 set CLEAN = "yes"
 12               else if ($FLAG == $LCMD) then
 13                 set CHKLIBS = "yes"
 14               endif
 15           end
 16           
 17           if ($CHKLIBS == "no") then
 18 arta  1.5     echo -n "Remove links for local project configuration..."
 19 arta  1.10     if (-d proj) then
 20            	cd proj
 21 arta  1.8  	if (-e configure) then
 22            	    rm configure
 23            	endif
 24            	if (-e make_basic.mk) then
 25            	    rm make_basic.mk
 26            	endif
 27            	if (-e Rules.mk) then
 28            	    rm Rules.mk
 29            	endif
 30            	if (-e target.mk) then
 31            	    rm target.mk
 32            	endif
 33 arta  1.10 	cd ..
 34 arta  1.5      endif
 35                echo "done"
 36            
 37 arta  1.1      echo -n "Remove links to man pages..."
 38 arta  1.13     if (-e man) then
 39            	rm -rf man
 40 arta  1.12     endif
 41 arta  1.1      echo "done"
 42            
 43                echo -n "Removing links to headers..."
 44 arta  1.10     if (-d base/include) then
 45            	cd base/include
 46 arta  1.8  	find . -name "*.h" -exec rm {} \;
 47 arta  1.10 	cd ../..
 48 arta  1.1      endif
 49                echo "done"
 50            
 51                echo -n "Removing links to scripts..."
 52                if (-d scripts) then
 53            	cd scripts
 54 arta  1.8  	find . -name "*" -exec rm {} \;
 55 arta  1.1  	cd ..
 56                endif
 57                echo "done"
 58            
 59                echo -n "Removing links to jsds..."
 60                if (-d jsds) then
 61            	cd jsds
 62 arta  1.8  	find . -name "*" -exec rm {} \;
 63 arta  1.1  	cd ..
 64                endif
 65                echo "done"
 66            
 67                echo
 68            
 69                if ($CLEAN == "yes") then
 70 arta  1.10 	if (-x base/local/libs/dsds/scripts/rmlinks.csh) then
 71            	    base/local/libs/dsds/scripts/rmlinks.csh
 72 arta  1.1  	endif
 73            
 74 arta  1.10 	if (-x base/local/libs/soi/scripts/rmlinks.csh) then
 75            	    base/local/libs/soi/scripts/rmlinks.csh
 76 arta  1.1  	endif
 77                else
 78 arta  1.5  	echo -n "Setting links for local project configuration..."
 79 arta  1.6  	if (-e suflag.txt) then
 80 arta  1.10 	    cd proj
 81            	    ln -sf ../projconf/su/configure configure
 82            	    ln -sf ../projconf/su/make_basic.mk make_basic.mk
 83            	    ln -sf ../projconf/su/Rules.mk Rules.mk
 84            	    ln -sf ../projconf/su/target.mk target.mk
 85            	    cd ..
 86 arta  1.6  	else
 87 arta  1.10 	    cd proj
 88            	    ln -sf ../projconf/ex/configure configure
 89            	    ln -sf ../projconf/ex/make_basic.mk make_basic.mk
 90            	    ln -sf ../projconf/ex/Rules.mk Rules.mk
 91            	    ln -sf ../projconf/ex/target.mk target.mk
 92            	    cd ..
 93 arta  1.5  	endif
 94            	echo "done"
 95            
 96 arta  1.13 	echo "Setting links to man pages..."
 97            	if (-d /home/jsoc/man) then
 98            	    if (!(-e man)) then
 99            		ln -s /home/jsoc/man man
100            	    endif
101            	endif
102 arta  1.1  	echo "done"
103            
104            	echo "Setting links to headers..."
105 arta  1.10 	if (!(-d base/include)) then
106            	    mkdir -p base/include
107 arta  1.1  	endif
108 arta  1.10 	cd base/include
109 arta  1.1  	find .. -path '../include' -prune -o -name \*.h  \( \( -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \; \)
110 arta  1.10 	cd ../..
111 arta  1.1  	echo "done"
112            	echo
113            	
114            	echo "Setting links to scripts..."
115                    if (!(-d scripts)) then
116            	    mkdir scripts
117            	endif
118            	cd scripts
119 arta  1.3  
120            	# Sums scripts
121 arta  1.10 	find ../base/sums/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
122 arta  1.3  
123            	# Util scripts
124 arta  1.10 	find ../base/util/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
125 arta  1.3  
126 arta  1.9  	# DRMS / IDL-interface scripts
127 arta  1.10 	find ../base/drms/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
128 arta  1.9  
129 arta  1.4  	# Project-specific scripts - these won't show up if you don't have the project source.
130 arta  1.10 	if (-x ../proj/configure) then
131            	    ../proj/configure
132 arta  1.4  	endif
133 arta  1.3  
134 arta  1.1  	cd ..
135            	echo "done"
136            	echo
137            
138            	echo "Setting links to jsds..."
139            	if (!(-d jsds)) then
140            	    mkdir jsds
141            	endif
142            	cd jsds
143 arta  1.10 	find ../base \( -name \*.jsd -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o \( -name \*.jsd -exec echo "  " {} " ERROR - couldn't create link" \; \)
144 arta  1.1  	cd ..
145            	echo "done"
146            	echo
147            
148            	# generate links for DSDS/SOI dynamic libraries - only do this if 
149            	# user's environment has access to /home/soi/CM
150            	if (-d /home/soi/CM/include && -d /home/soi/CM/src) then
151 arta  1.10 	    if (-x base/local/libs/dsds/scripts/genlinks.csh) then
152            		base/local/libs/dsds/scripts/genlinks.csh
153 arta  1.1  	    endif
154            
155 arta  1.10 	    if (-x base/local/libs/soi/scripts/genlinks.csh) then
156            		base/local/libs/soi/scripts/genlinks.csh
157 arta  1.1  	    endif
158            	endif
159                endif
160            endif
161            
162            # Enter required library names and versions here.
163            if ($CHKLIBS == "yes") then
164            
165                echo
166                echo "JSOC expects all third-party library header files to be located at $JSOCROOT/lib_third_party/include/ and all third-party libraries to be located at $JSOCROOT/lib_third_party/$JSOC_MACHINE/.  If you wish to build a target that uses one of the following third-paty libraries, please install the required library version and create a link from from $JSOCROOT/lib_third_party/include/ and $JSOCROOT/lib_third_party/$JSOC_MACHINE/ to the installed library headers and binary files, respectively."
167                echo
168                echo "Example:"
169                echo "  cd $JSOCROOT/lib_third_party/"
170                echo "  ln -s /usr/local/include include"
171                echo "  cd $JSOCROOT/lib_third_party/$JSOC_MACHINE/"
172                echo "  ln -s /usr/local/lib/libfftw3f.a libfftw3f.a "
173                echo
174                echo "Library libfftw3f.a (v. 3.1.2) required for targets: universe, examples, helloworld, xinterp, demo_td08062007"
175                echo "Library libcfitsio.a (v. 3.03) required for targets: universe, examples, f_ingest_gong_mrv, f_dup_gong_mrv"
176            
177            #    echo "Library libcfitsio.a (v. 3.03) required for targets: examples, helloworld"
178 arta  1.1  #    echo "Library libmkl.so (v. 9.0) required for targets: examples, helloworld"
179            #    if ($JSOC_MACHINE == "linux_x86_64") then 
180            #	echo "Library libmkl_lapack64.so (v. 9.0) required for targets: examples, helloworld"
181            #    else echo "Library libmkl_lapack32.so (v. 9.0) required for targets: examples, helloworld"
182            #    endif
183            
184            
185            endif 

Karen Tian
Powered by
ViewCVS 0.9.4