(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               echo -n "Remove links to man pages..."
 19               if (-d man/man1) then
 20           	cd man/man1
 21           	rm -f *.*
 22 arta  1.1 	cd ../..
 23               endif
 24               if (-d man/man3) then
 25           	cd man/man3
 26           	rm -f *.*
 27           	cd ../..
 28               endif
 29               echo "done"
 30           
 31               echo -n "Removing links to headers..."
 32               if (-d src/base/include) then
 33           	cd src/base/include
 34           	rm -f *.h
 35           	cd ../../..
 36               endif
 37               echo "done"
 38           
 39               echo -n "Removing links to scripts..."
 40               if (-d scripts) then
 41           	cd scripts
 42           	rm -f *
 43 arta  1.1 	cd ..
 44               endif
 45               echo "done"
 46           
 47               echo -n "Removing links to jsds..."
 48               if (-d jsds) then
 49           	cd jsds
 50           	rm -f *
 51           	cd ..
 52               endif
 53               echo "done"
 54           
 55               echo
 56           
 57               if ($CLEAN == "yes") then
 58           
 59           	if (-x src/base/local/libs/dsds/scripts/rmlinks.csh) then
 60           	    src/base/local/libs/dsds/scripts/rmlinks.csh
 61           	endif
 62           
 63           	if (-x src/base/local/libs/soi/scripts/rmlinks.csh) then
 64 arta  1.1 	    src/base/local/libs/soi/scripts/rmlinks.csh
 65           	endif
 66               else
 67           	echo -n "Setting links to man pages..."
 68           	if (!(-d man/man1)) then
 69           	    mkdir -p man/man1
 70           	endif
 71           	if (!(-d man/man3)) then
 72           	    mkdir -p man/man3
 73           	endif
 74           	cd man/man1
 75 arta  1.2 	find ../.. -path '../../man/man1' -prune -o -path '*/man/man1/*.1' -exec ln -s {} . \;
 76 arta  1.1 	cd ../../man/man3
 77 arta  1.2 	find ../.. -path '../../man/man3' -prune -o -path '*/man/man3/*.3' -exec ln -s {} . \;
 78 arta  1.1 	cd ../..
 79           	echo "done"
 80           
 81           	echo "Setting links to headers..."
 82           	if (!(-d src/base/include)) then
 83           	    mkdir -p src/base/include
 84           	endif
 85           	cd src/base/include
 86           	find .. -path '../include' -prune -o -name \*.h  \( \( -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \; \)
 87           	cd ../../..
 88           	echo "done"
 89           	echo
 90           	
 91           	echo "Setting links to scripts..."
 92                   if (!(-d scripts)) then
 93           	    mkdir scripts
 94           	endif
 95           	cd scripts
 96 arta  1.3 
 97           	# Sums scripts
 98           	find ../src/base/sums/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
 99           
100           	# Util scripts
101           	find ../src/base/util/scripts -mindepth 1 \( -path \*CVS -prune -o -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o -exec echo "  " {} " ERROR - couldn't create link" \;
102           
103 arta  1.4 	# Project-specific scripts - these won't show up if you don't have the project source.
104           	if (-x ../src/proj/configure) then
105           	    ../src/proj/configure
106           	endif
107 arta  1.3 
108 arta  1.1 	cd ..
109           	echo "done"
110           	echo
111           
112           	echo "Setting links to jsds..."
113           	if (!(-d jsds)) then
114           	    mkdir jsds
115           	endif
116           	cd jsds
117           	find ../src/base \( -name \*.jsd -exec ln -s {} . \; -a -exec echo "  " {} " OK" \; \) -o \( -name \*.jsd -exec echo "  " {} " ERROR - couldn't create link" \; \)
118           	cd ..
119           	echo "done"
120           	echo
121           
122           	# generate links for DSDS/SOI dynamic libraries - only do this if 
123           	# user's environment has access to /home/soi/CM
124           	if (-d /home/soi/CM/include && -d /home/soi/CM/src) then
125           	    if (-x src/base/local/libs/dsds/scripts/genlinks.csh) then
126           		src/base/local/libs/dsds/scripts/genlinks.csh
127           	    endif
128           
129 arta  1.1 	    if (-x src/base/local/libs/soi/scripts/genlinks.csh) then
130           		src/base/local/libs/soi/scripts/genlinks.csh
131           	    endif
132           	endif
133               endif
134           endif
135           
136           # Enter required library names and versions here.
137           if ($CHKLIBS == "yes") then
138           
139               echo
140               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."
141               echo
142               echo "Example:"
143               echo "  cd $JSOCROOT/lib_third_party/"
144               echo "  ln -s /usr/local/include include"
145               echo "  cd $JSOCROOT/lib_third_party/$JSOC_MACHINE/"
146               echo "  ln -s /usr/local/lib/libfftw3f.a libfftw3f.a "
147               echo
148               echo "Library libfftw3f.a (v. 3.1.2) required for targets: universe, examples, helloworld, xinterp, demo_td08062007"
149               echo "Library libcfitsio.a (v. 3.03) required for targets: universe, examples, f_ingest_gong_mrv, f_dup_gong_mrv"
150 arta  1.1 
151           #    echo "Library libcfitsio.a (v. 3.03) required for targets: examples, helloworld"
152           #    echo "Library libmkl.so (v. 9.0) required for targets: examples, helloworld"
153           #    if ($JSOC_MACHINE == "linux_x86_64") then 
154           #	echo "Library libmkl_lapack64.so (v. 9.0) required for targets: examples, helloworld"
155           #    else echo "Library libmkl_lapack32.so (v. 9.0) required for targets: examples, helloworld"
156           #    endif
157           
158           
159           endif 

Karen Tian
Powered by
ViewCVS 0.9.4