source: Sophya/trunk/SophyaLib/BuildMgr/configure@ 3670

Last change on this file since 3670 was 3670, checked in by cmv, 16 years ago

on fait un rm -f avant de redirider avec > (equiv. >! cmv+rz 05/11/2009

  • Property svn:executable set to *
File size: 17.5 KB
Line 
1#!/bin/csh
2# SOPHYA configuration managment script
3# C. Magneville / R. Ansari - Mai 2005
4# Updated : 2006, Avr/Mai , Oct 2007
5# Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \
6# -extp /exp/planck/ExtLibs/OSF1-cxx/
7
8#----------------------------------------------------------------------
9#### liste des modules
10set SOPMODOK = ( 1 1 1 1 1 1 1 1 1 )
11set SOPMOD = ( BaseTools SysTools SUtils TArray NTools HiStats SkyMap Samba SkyT )
12set ALLSOPLIBS = ( '-lBaseTools' '-lSysTools' '-lSUtils' '-lTArray' '-lNTools' '-lHiStats' '-lSkyMap' '-lSamba' '-lSkyT' )
13
14set SOPPIOK = ( 1 1 1 )
15set SOPPI = ( PI PIext PIGcont )
16set ALLPILIBS = ( '-lPI' '-lPIext' '-lPIGcont' )
17
18set SOPEXT = ( FitsIOServer IFFTW LinAlg XAstroPack )
19set EXTCURNAME = ( fits fftw lapack astro )
20set SOPEXTOK = ( 1 1 1 1 )
21set EXTINCNAME = ( FitsIO/fitsio.h FFTW/fftw3.h PASDEINC XAstro/astro.h )
22set EXTLIBNAME = ( libcfitsio.a libfftw3.a liblapack.a libxastro.a )
23set ALLEXTLIBS = ( '-lcfitsio' '-lfftw3' '-llapack -lblas' '-lxastro' )
24
25#FFTW2: set EXTINCNAME = ( FitsIO/fitsio.h FFTW/fftw.h PASDEINC XAstro/astro.h )
26#FFTW2: set EXTLIBNAME = ( libcfitsio.a libfftw.a liblapack.a libxastro.a )
27#FFTW2: set ALLEXTLIBS = ( '-lcfitsio' '-lfftw -lrfftw' '-llapack -lblas' '-lxastro' )
28
29set defextinc = ( /usr/include /usr/local/include )
30set defextlib = ( /usr/lib /usr/local/lib )
31
32
33#----------------------------------------------------------------------
34#### Decodage arguments
35set cmdline = "$0 $*"
36set extpath
37set extpathinc
38set extpathlib
39unset incln
40unset mincname
41set compopt
42unset arch64
43unset sasz64
44unset nofpic
45unset nothsafe
46unset boundcheck
47unset sodebug
48unset usefftw2
49unset uselapack2
50unset alsofftwfloat
51unset slballinone
52while ( $#argv > 0 )
53
54if( "$1" == "-h" ) then
55 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] '
56 echo " [-minc mymake.inc] [-compopt 'cc/cxxOptions'] "
57 echo ' [-arch64] [-sasz64] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]'
58 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]'
59 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]'
60 echo ' [-noPI] [-slballinone]'
61 echo ' [-alsofftwfloat] [-usefftw2] [-uselapack2] '
62 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)'
63 exit -1
64endif
65if( "$1" == "-sbase" ) then
66 setenv SOPHYABASE $2
67 shift
68endif
69if( "$1" == "-scxx" ) then
70 setenv SOPHYACXX $2
71 shift
72endif
73if( "$1" == "-incln" ) then
74 set incln
75endif
76if( "$1" == "-minc" ) then
77 set mincname = ( $2 )
78 shift
79endif
80if( "$1" == "-compopt" ) then
81 set compopt = ( $2 )
82 shift
83endif
84if( "$1" == "-extp" ) then
85 set extpath = ( $extpath $2 )
86 shift
87endif
88if( "$1" == "-extip" ) then
89 set extpathinc = ( $extpathinc $2 )
90 shift
91endif
92if( "$1" == "-extlp" ) then
93 set extpathlib = ( $extpathlib $2 )
94 shift
95endif
96if( "$1" == "-noextlib" ) then
97 set i = 0
98 while ( $i < $#SOPEXTOK )
99 @ i += 1
100 set SOPEXTOK[$i] = 0
101 end
102endif
103if( "$1" == "-noext" ) then
104 set i = 0
105 while ( $i < $#EXTCURNAME )
106 @ i += 1
107 if( "$2" == "$EXTCURNAME[$i]" ) set SOPEXTOK[$i] = 0
108 end
109 shift
110endif
111if( "$1" == "-PI" ) then
112 set SOPPIOK = ( 0 0 0 )
113endif
114if( "$1" == "-alsofftwfloat" ) then
115# On veut la version float de FFTW, en plus de double
116 set alsofftwfloat
117 set i = 0
118 while ( $i < $#EXTCURNAME )
119 @ i += 1
120 if( "fftw" == "$EXTCURNAME[$i]" ) then
121 set ALLEXTLIBS[$i] = '-lfftw3 -lfftw3f'
122 endif
123 end
124endif
125if( "$1" == "-usefftw2" ) then
126# version FFTW 2 au lieu de V3
127 set usefftw2
128 set i = 0
129 while ( $i < $#EXTCURNAME )
130 @ i += 1
131 if( "fftw" == "$EXTCURNAME[$i]" ) then
132 set EXTINCNAME[$i] = 'FFTW/fftw.h'
133 set EXTLIBNAME[$i] = 'libfftw.a'
134 set ALLEXTLIBS[$i] = '-lfftw -lrfftw'
135 endif
136 end
137endif
138if( "$1" == "-uselapack2" ) then
139# version LAPACK 2 au lieu de V3
140 set uselapack2
141endif
142if( "$1" == "-slballinone" ) then
143# Pour utiliser une seule librairie libsophyaPIext.so au lieu
144# des 3 libsophya.so libextsophya.so libPI.so
145 set slballinone
146endif
147# Decodage options pour flags de machdefs.h
148# Liste de flags : SO_ARCH64 SO_NOFPIC SO_SASIZET64 SO_BOUNDCHECKING SOPHYA_DEBUG
149if( "$1" == "-arch64" ) then
150 set arch64
151endif
152if( "$1" == "-sasz64" ) then
153 set sasz64
154endif
155if( "$1" == "-nofpic" ) then
156 set nofpic
157endif
158if( "$1" == "-nothsafe" ) then
159 set nothsafe
160endif
161if( "$1" == "-boundcheck" ) then
162 set boundcheck
163endif
164if( "$1" == "-sodebug" ) then
165 set sodebug
166endif
167
168
169shift
170end
171
172## ------ Detection linux 64 bits ---
173unset linux64
174if ( `uname` == "Linux" ) then
175 if ( `uname -m` == "x86_64" ) then
176 echo ' ... Linux x86_64 (64 bits) ---> -arch64 '
177 set linux64
178 set arch64
179 endif
180endif
181
182
183#----------------------------------------------------------------------
184#### Verification generale
185if( ! $?SOPHYABASE ) then
186 echo ERROR: define SOPHYABASE or use script arguments
187 exit -2
188endif
189if( ! $?SOPHYACXX ) then
190 echo ERROR: define SOPHYACXX or use script arguments
191 echo " SOPHYACXX define the name of the C++ compiler (ex: g++ cxx ...)"
192 exit -2
193endif
194if( ! $?TMPDIR ) setenv TMPDIR /tmp
195touch $TMPDIR/tmp_test
196if( $status != 0 ) then
197 echo ERROR: no write acces in temporary directory: $TMPDIR
198 echo '----> define TMPDIR environment variable: "setenv TMPDIR ..."'
199 exit -2
200endif
201rm -f $TMPDIR/tmp_test
202if( ! $?mincname ) then
203 set mincname = `uname`_${SOPHYACXX}_make.inc
204endif
205if( ! -e $mincname ) then
206 echo ERROR: file $mincname NOT found
207 exit -2
208endif
209if( ! -e ../BaseTools/machdefs_mkmf.h ) then
210 echo ERROR: file machdefs_mkmf.h NOT found in BaseTools
211 exit -2
212endif
213echo SOPEXTOK: $SOPEXTOK
214
215#----------------------------------------------------------------------
216#### creation des variables chemins sophya core
217echo " "
218echo ">>>>>> 1/ Creating directory tree under $SOPHYABASE "
219set sinc = $SOPHYABASE/include
220set slib = $SOPHYABASE/lib
221set sslb = $SOPHYABASE/slb
222set sobj = $SOPHYABASE/obj
223set sexe = $SOPHYABASE/exe
224set sconf = $sinc/SophyaConfInfo
225foreach d ( $sinc $slib $sslb $sobj $sexe $sconf )
226 if( ! -d $d ) then
227 mkdir $d
228 if( $status ) then
229 echo ERROR: creation of $d failed
230 exit -3
231 endif
232 echo Directory $d created
233 endif
234 touch $d/tmp_test
235 if( $status ) then
236 echo ERROR: no write acces to $d
237 exit -4
238 endif
239 rm -f $d/tmp_test
240end
241
242
243#----------------------------------------------------------------------
244#### Fichier confinfo - log e configure
245set conflog = $sconf/conf.log
246rm -f $conflog ; touch $conflog
247echo ' --- Log of SOPHYA configure script - Date= ' `date` >> $conflog
248echo "$cmdline" >> $conflog
249set inclistf = $sconf/include.list
250rm -f $inclistf ; touch $inclistf
251
252
253#----------------------------------------------------------------------
254#### liens ou copie des *.h
255echo " "
256if( $?incln ) then
257 echo ">>>>>> 2/ Creating symbolic link for include files in $sinc "
258else
259 echo ">>>>>> 2/ Copying include files to $sinc "
260endif
261
262cd ../ > /dev/null
263set srcd = `pwd`
264set cpln = "cp -p "
265if( $?incln ) set cpln = "ln -s -f "
266foreach d ( $SOPMOD $SOPEXT $SOPPI )
267 if ( -d $srcd/$d ) then
268 if ( $?incln ) then
269 echo Creating link to include files for module $d
270 else
271 echo Copying include files for module $d
272 endif
273
274 cd $srcd/$d;
275 set file = ( *.h )
276 cd $sinc; if( $status == 0 ) rm -f $file
277 # on vire le .h de $file si .h dans excludeinc du module
278 cd $srcd/$d
279 if( -e excludeinc ) then
280 if( `cat excludeinc | wc -l` > 0 ) then
281 set file
282 foreach f ( *.h )
283 grep -q "$f:r\.h" excludeinc
284 if( $status != 0 ) set file = ( $file $f )
285 end
286 endif
287 endif
288 # on copie ou link dans $sinc
289 if( `echo $file | wc -w` > 0 ) then
290 foreach f ( $file )
291 $cpln $srcd/$d/$f $sinc/$f
292 end
293 endif
294 echo $file >> $inclistf
295 endif
296end
297rm -f $sinc/machdefs_ac.h $sinc/machdefs_mkmf.h
298cd $srcd/BuildMgr/.
299
300
301#----------------------------------------------------------------------
302#### lien des .h des librairies externes
303echo " "
304echo ">>>>>> 3/ Include files for external libraries "
305set i = 0
306while ( $i < $#SOPEXT )
307 @ i += 1
308 if( "$EXTINCNAME[$i]" == "PASDEINC" ) continue
309 if( $SOPEXTOK[$i] <= 0 ) continue
310 set nom = $EXTINCNAME[$i]:t
311 set rac = $EXTINCNAME[$i]:h
312 if( -d ../$SOPEXT[$i] ) then
313 echo "Searching include file for $SOPEXT[$i] ..."
314 foreach d ( $extpathinc $extpath $defextinc )
315 set duminc = `find $d -name $nom -print -follow | head -1 `
316 set dumrep = $duminc:h
317 if ( "$dumrep" != "" ) then
318 rm -f $sinc/$rac
319 ln -f -s $dumrep $sinc/$rac
320 echo Includes for $SOPEXT[$i] found in $dumrep
321 break
322 endif
323 end
324 if ( "$dumrep" == "" ) then
325 echo WARNING: Includes for $SOPEXT[$i] NOT found
326 echo " Compilation of module $SOPEXT[$i] disabled"
327 set SOPEXTOK[$i] = 0
328 endif
329 endif
330end
331
332
333#----------------------------------------------------------------------
334#### liens des librairies externes
335echo " "
336echo ">>>>>> 4.1/ External libraries "
337set fpath = $TMPDIR/fpath
338rm -f $fpath; touch $fpath
339set extliblib
340set i = 0
341while ( $i < $#SOPEXT )
342 @ i += 1
343 if( "$EXTLIBNAME[$i]" == "PASDELIB" ) continue
344 if( $SOPEXTOK[$i] <= 0 ) continue
345 set nom = $EXTLIBNAME[$i]
346 if( -d ../$SOPEXT[$i] ) then
347 echo "Searching libraries path for $SOPEXT[$i] ..."
348 foreach d ( $extpathlib $extpath $defextlib )
349 set dumlib = `find $d -name $nom -print -follow | head -1 `
350 if ( "$dumlib" != "" ) then
351 echo "-L$dumlib:h" >> $fpath
352 set extliblib = ( $extliblib $ALLEXTLIBS[$i] )
353 break
354 endif
355 end
356 if ( "$dumlib" == "" ) then
357 echo WARNING: Libraries for $SOPEXT[$i] NOT found
358 echo " Check the generated make.inc file"
359 endif
360 endif
361end
362set extlibpath = `cat $fpath | sort -u`
363echo extlibpath= $extlibpath
364echo extliblib= $extliblib
365rm -f $fpath
366
367
368#----------------------------------------------------------------------
369#### Identification des librairies archives Sophya
370echo " "
371echo ">>>>>> 4.2/ Sophya libraries archives "
372set sopmodlib
373set i = 0
374while ( $i < $#SOPMOD )
375 @ i += 1
376 if( $SOPMODOK[$i] <= 0 ) continue
377 if( -d ../$SOPMOD[$i] ) then
378 set sopmodlib = ( $sopmodlib $ALLSOPLIBS[$i] )
379 else
380 echo "WARNING: module "$SOPMOD[$i]" not found"
381 endif
382end
383echo sopmodlib= $sopmodlib
384
385echo " "
386echo ">>>>>> 4.3/ PI-Sophya libraries archives "
387set soppilib
388set i = 0
389while ( $i < $#SOPPI )
390 @ i += 1
391 if( $SOPPIOK[$i] <= 0 ) continue
392 if( -d ../$SOPPI[$i] ) then
393 set soppilib = ( $soppilib $ALLPILIBS[$i] )
394 else
395 echo "WARNING: module "$SOPPI[$i]" not found"
396 endif
397end
398echo soppilib= $soppilib
399
400#----------------------------------------------------------------------
401#### Generation de sophyamake.inc
402# On le cree dans le repertoire temporaire d'abord
403set mfile = $sinc/sophyamake.inc
404rm -f $mfile
405echo " "
406echo ">>>>>> 5/ Creating $mfile from $mincname "
407echo "# -----------------------------------------------" > $mfile
408echo "# File make.inc - generated by SOPHYA configure" >> $mfile
409echo "# Date" `date` >> $mfile
410echo "# Seed file : $mincname " >> $mfile
411echo "# -----------------------------------------------" >> $mfile
412echo " " >> $mfile
413echo "# SOPHYA Base installation directory " >> $mfile
414echo "SOPHYABASE = $SOPHYABASE" >> $mfile
415echo " " >> $mfile
416echo 'SOPHYAINCP = $(SOPHYABASE)/include/' >> $mfile
417echo 'SOPHYAOBJP = $(SOPHYABASE)/obj/' >> $mfile
418echo 'SOPHYALIBP = $(SOPHYABASE)/lib/' >> $mfile
419echo 'SOPHYASLBP = $(SOPHYABASE)/slb/' >> $mfile
420echo 'SOPHYAEXEP = $(SOPHYABASE)/exe/' >> $mfile
421
422echo " " >> $mfile
423echo "# module libraries " >> $mfile
424echo "SOPMODLIBLIST = $sopmodlib" >> $mfile
425
426echo " " >> $mfile
427echo "# External libraries PATH " >> $mfile
428echo "SOPEXTLIBP = $extlibpath" >> $mfile
429echo "SOPEXTLIBLIST = $extliblib" >> $mfile
430
431echo " " >> $mfile
432echo "# PI libraries " >> $mfile
433echo "SOPPILIBLIST = $soppilib" >> $mfile
434
435echo " " >> $mfile
436cat $mincname >> $mfile
437
438# --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed)
439set sname = `uname`
440set sprgfile = $TMPDIR/compop.scom
441rm -f $sprgfile
442echo '{' > $sprgfile
443set scmd = "/FLAGS/s/CNFPHFLF/ $compopt/g"
444if ( $?arch64 ) then
445 set a64cf = ' '
446 if ( ( "$sname" == "IRIX64" ) && ("$SOPHYACXX" == "CC" ) ) set a64cf = '-64'
447 if ( "$sname" == "AIX" ) then
448 if ( ("$SOPHYACXX" == "xlC" ) || ("$SOPHYACXX" == "xlc" ) ) set a64cf = '-q64'
449 echo "/ARFLAGS/s/-rcs/-rcs -X 64/" >> $sprgfile
450 endif
451 set scmd = "/FLAGS/s/CNFPHFLF/$a64cf $compopt/g"
452endif
453echo $scmd >> $sprgfile
454if ( $?nofpic ) echo "s/-fPIC/ /g" >> $sprgfile
455if( $?slballinone ) then
456 echo "/SOPHYAALLSLBLIST/s/-lPI -lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile
457 echo "/SOPHYAEXTSLBLIST/s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile
458endif
459if ( $?linux64 ) then
460 echo "s?-L/usr/X11R6/lib?-L/usr/X11R6/lib64?g" >> $sprgfile
461endif
462echo '}' >> $sprgfile
463set mftmp = $TMPDIR/sopmake.inc
464cp $mfile $mftmp
465rm -f $mfile
466sed -f $sprgfile $mftmp > $mfile
467rm -f $sprgfile $mftmp
468# --- FIN de gestion des flags modifiants les options de compilation (par sed)
469
470rm -f $mfile:t
471ln -s $mfile $mfile:t
472
473
474#----------------------------------------------------------------------
475#### Copie de machdefs.h
476set mdefname = $TMPDIR/machdefs.h
477echo " "
478echo ">>>>>> 6.a/ Creating machdefs.h from BaseTools/machdefs_mkmf.h"
479rm -f $mdefname; touch $mdefname
480echo "/*** machdefs.h generated by SOPHYA configure ***/" >> $mdefname
481echo "#ifndef MACHDEFS_SEEN" >> $mdefname
482echo "#define MACHDEFS_SEEN" >> $mdefname
483echo "/*------ Code generation switch ---- */" >> $mdefname
484echo "/* System selector (uname) */" >> $mdefname
485# Fait avant - set sname = `uname`
486echo "#ifndef $sname" >> $mdefname
487echo "#define $sname 1 " >> $mdefname
488echo "#endif" >> $mdefname
489
490## Definition de flags de compilation en fonction des options de configure
491if ( $?arch64 ) echo "#define SO_ARCH64 1" >> $mdefname
492if ( $?sasz64 ) echo "#define SO_SASIZET64 1" >> $mdefname
493if ( $?nofpic ) echo "#define SO_NOFPIC 1" >> $mdefname
494if ( $?nothsafe ) echo "#define SO_NOTHSAFE 1" >> $mdefname
495if ( $?boundcheck ) echo "#define SO_BOUNDCHECKING 1" >> $mdefname
496if ( $?sodebug ) echo "#define SOPHYA_DEBUG 1" >> $mdefname
497
498if ( "$sname" == "IRIX64" ) then
499 if ( "$SOPHYACXX" == "CC" ) then
500# __SGICC__ : flag indiquant que c'est le compilo CC de SGI
501 echo "#define __SGICC__ 1" >> $mdefname
502 endif
503endif
504
505
506echo " " >> $mdefname
507grep -v -e '#ifndef *MACHDEFS_SEEN' -e '#define *MACHDEFS_SEEN' ../BaseTools/machdefs_mkmf.h >> $mdefname
508# On ne copie que si machdefs.h est different
509if (-e $sinc/machdefs.h ) then
510 diff $mdefname $sinc/machdefs.h >& /dev/null
511 if ($status != 0) then
512 cp -f -p $mdefname $sinc/machdefs.h
513 echo " file $sinc/machdefs.h changed -> replaced"
514 else
515 echo " file $sinc/machdefs.h has not changed -> kept"
516 endif
517else
518 cp -f -p $mdefname $sinc/machdefs.h
519 echo " file $sinc/machdefs.h created"
520endif
521rm -f $mdefname
522
523
524#### Creation de sspvflags.h
525echo " "
526echo ">>>>>> 6.b/ Creating $sinc/sspvflags.h "
527rm -f $sinc/sspvflags.h; touch $sinc/sspvflags.h
528
529echo "#ifndef SSPVFLAGS_SEEN" >> $sinc/sspvflags.h
530echo "#define SSPVFLAGS_SEEN" >> $sinc/sspvflags.h
531echo " " >> $sinc/sspvflags.h
532echo "/*------ External libraries no-use flag ---- */" >> $sinc/sspvflags.h
533set i = 0
534while ( $i < $#SOPEXTOK )
535 @ i += 1
536 if( $SOPEXTOK[$i] > 0 ) continue
537 echo "#define SOPHYA_NO_$SOPEXT[$i]" >> $sinc/sspvflags.h
538end
539
540echo " " >> $sinc/sspvflags.h
541echo "/*------ SOPOHYA/ExtLibsvVersion selection flags ---- */" >> $sinc/sspvflags.h
542echo " " >> $sinc/sspvflags.h
543if( $?alsofftwfloat ) then
544 echo "/*-- Compile ALSO float version of FFTWServer methods -- */" >> $sinc/sspvflags.h
545 echo "#define ALSO_FFTW_FLOAT_EXTSOP" >> $sinc/sspvflags.h
546endif
547if( $?usefftw2 ) then
548 echo "/*-- Use FFTW V2 instead of V3 -- */" >> $sinc/sspvflags.h
549 echo "#define FFTW_V2_EXTSOP" >> $sinc/sspvflags.h
550endif
551if( $?uselapack2 ) then
552 echo "/*-- Use LAPACK V2 instead of V3 -- */" >> $sinc/sspvflags.h
553 echo "#define LAPACK_V2_EXTSOP" >> $sinc/sspvflags.h
554endif
555echo " " >> $sinc/sspvflags.h
556if( $?slballinone ) then
557 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h
558 echo "#define SO_SLBALLINONE " >> $sinc/sspvflags.h
559endif
560echo " " >> $sinc/sspvflags.h
561echo "#endif " >> $sinc/sspvflags.h
562
563
564#----------------------------------------------------------------------
565#### Creation des fichiers contenant les listes d'objets et d'includes
566echo " "
567echo ">>>>>> 7/ Creating object list files for shared library creation "
568set objlistname = $sconf/libsophya.objlist
569echo " 7.a/ Creating $objlistname "
570rm -f $objlistname ; touch $objlistname
571foreach d ( $SOPMOD )
572 rm -f $sconf/$d.conf
573 if ( ! -d ../$d ) continue
574 cat ../$d/objlist.list >> $objlistname
575 touch $sconf/$d.conf
576end
577
578set objlistname = $sconf/libextsophya.objlist
579echo " 7.b/ Creating $objlistname "
580rm -f $objlistname ; touch $objlistname
581set i = 0
582while ( $i < $#SOPEXT )
583 @ i += 1
584 set d = $SOPEXT[$i]
585 rm -f $sconf/$d.conf
586 if( $SOPEXTOK[$i] <= 0 ) continue
587 if ( ! -d ../$d ) continue
588 cat ../$d/objlist.list >> $objlistname
589 touch $sconf/$d.conf
590end
591
592set objlistname = $sconf/libPI.objlist
593echo " 7.c/ Creating $objlistname "
594rm -f $objlistname ; touch $objlistname
595set i = 0
596while ( $i < $#SOPPI )
597 @ i += 1
598 set d = $SOPPI[$i]
599 rm -f $sconf/$d.conf
600 if( $SOPPIOK[$i] <= 0 ) continue
601 if ( ! -d ../$d ) continue
602 cat ../$d/objlist.list >> $objlistname
603 touch $sconf/$d.conf
604end
605
606
607#----------------------------------------------------------------------
608exit 0
Note: See TracBrowser for help on using the repository browser.