source: trunk/config/scripts/install.sh.SH @ 1213

Last change on this file since 1213 was 1213, checked in by garnier, 15 years ago

Suppression de Xaw. Sauf dans Configure et les fichier G4UIXaw.hh et cc

  • Property svn:executable set to *
File size: 15.5 KB
Line 
1case $CONFIG in
2'')
3        if test -f config.sh; then TOP=.;
4        elif test -f ../config.sh; then TOP=..;
5        elif test -f ../../config.sh; then TOP=../..;
6        elif test -f ../../../config.sh; then TOP=../../..;
7        elif test -f ../../../../config.sh; then TOP=../../../..;
8        else
9                echo "Can't find config.sh."; exit 1
10        fi
11        . $TOP/config.sh
12        ;;
13esac
14: This forces SH files to create target in same directory as SH file.
15: This is so that make depend always knows where to find SH derivatives.
16case "$0" in
17*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
18esac
19#echo "Extracting install.sh (with variable substitutions)"
20: This section of the file will have variable substitutions done on it.
21: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
22: Protect any dollar signs and backticks that you do not want interpreted
23: by putting a backslash in front.  You may delete these comments.
24$spitshell >install.sh <<!GROK!THIS!
25######################################
26#
27# Clean all G4 envs
28unset  CLHEP_BASE_DIR
29unset  CLHEP_INCLUDE_DIR
30unset  CLHEP_LIB
31unset  CLHEP_LIB_DIR
32
33unset  G4ANALYSIS_USE
34unset  G4DEBUG
35unset  G4INCLUDE
36unset  G4INSTALL
37
38unset  G4LEDATA
39unset  G4LEVELGAMMADATA
40unset  G4NEUTRONHPDATA
41unset  G4RADIOACTIVEDATA
42unset  G4ABLADATA
43
44unset  G4LIB
45unset  G4LIB_BUILD_G3TOG4
46unset  G4LIB_BUILD_SHARED
47unset  G4LIB_BUILD_STATIC
48unset  G4LIB_BUILD_ZLIB
49unset  G4LIB_BUILD_GDML
50unset  G4LIB_USE_G3TOG4
51unset  G4LIB_USE_GRANULAR
52unset  G4LIB_USE_ZLIB
53
54unset  G4SYSTEM
55
56unset  G4UI_NONE
57unset  G4UI_BUILD_WIN32_SESSION
58unset  G4UI_BUILD_XM_SESSION
59unset  G4UI_BUILD_QT_SESSION
60unset  G4UI_USE_TCSH
61unset  G4UI_USE_WIN32
62unset  G4UI_USE_XM
63unset  G4UI_USE_QT
64
65unset  G4VIS_NONE
66unset  G4VIS_BUILD_DAWN_DRIVER
67unset  G4VIS_BUILD_OIWIN32_DRIVER
68unset  G4VIS_BUILD_OIX_DRIVER
69unset  G4VIS_BUILD_OPENGLWIN32_DRIVER
70unset  G4VIS_BUILD_OPENGLXM_DRIVER
71unset  G4VIS_BUILD_OPENGLX_DRIVER
72unset  G4VIS_BUILD_RAYTRACERX_DRIVER
73unset  G4VIS_BUILD_VRML_DRIVER
74unset  G4VIS_BUILD_OPENGLQT_DRIVER
75
76unset  G4VIS_USE_DAWN
77unset  G4VIS_USE_OIWIN32
78unset  G4VIS_USE_OIX
79unset  G4VIS_USE_OPENGLWIN32
80unset  G4VIS_USE_OPENGLX
81unset  G4VIS_USE_OPENGLXM
82unset  G4VIS_USE_RAYTRACERX
83unset  G4VIS_USE_VRML
84unset  G4VIS_USE_OPENGLQT
85
86######################################
87#
88# g4system.U
89#
90#+
91G4SYSTEM="$g4system"
92export G4SYSTEM
93echo "On this machine the G4SYSTEM=\$G4SYSTEM"
94
95#
96# g4dirs.U
97#
98#+
99G4INSTALL="$g4install"
100export G4INSTALL
101echo "On this machine the G4INSTALL=\$G4INSTALL"
102
103#+
104if [ X$g4include != X -a X$g4include != Xn ] ; then
105G4INCLUDE="$g4include"
106export G4INCLUDE
107echo "On this machine the G4INCLUDE=\$G4INCLUDE"
108fi
109
110#+
111if [ X$g4tmp != X ] ; then
112G4TMP="$g4tmp"
113export G4TMP
114echo "On this machine the G4TMP=\$G4TMP"
115fi
116
117#+
118if [ X$g4lib != X ] ; then 
119G4LIB="$g4lib"
120export G4LIB
121echo "On this machine the G4LIB=\$G4LIB"
122fi
123
124#+
125if [ X$g4lib != X ] ; then 
126G4BIN="$g4lib/../bin"
127export G4BIN
128fi
129
130#+
131if [ X$g4levelgammadata != X ] ; then 
132G4LEVELGAMMADATA="$g4levelgammadata"
133export G4LEVELGAMMADATA
134echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
135fi
136
137#+
138if [ X$g4radioactivedata != X ] ; then 
139G4RADIOACTIVEDATA="$g4radioactivedata"
140export G4RADIOACTIVEDATA
141echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
142fi
143
144#+
145if [ X$g4ledata != X ] ; then 
146G4LEDATA="$g4ledata"
147export G4LEDATA
148echo "On this machine the G4LEDATA=\$G4LEDATA"
149fi
150
151#+
152if [ X$g4neutronhpcrosssections != X ] ; then 
153G4NEUTRONHPDATA="$g4neutronhpcrosssections"
154export G4NEUTRONHPDATA
155echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
156fi
157
158#+
159if [ X$g4abladata != X ] ; then 
160G4ABLADATA="$g4abladata"
161export G4ABLADATA
162echo "On this machine the G4ABLADATA=\$G4ABLADATA"
163fi
164
165
166
167
168#+
169#if [ X$g4elasticdata != X ] ; then
170#G4ELASTICDATA="$g4elasticdata"
171#export G4ELASTICDATA
172#echo "On this machine the G4ELASTICDATA=\$g4elasticdata"
173#fi
174
175#
176# g4clhep.U
177#
178if [ X$g4clhep_base_dir != X ] ; then 
179CLHEP_BASE_DIR="$g4clhep_base_dir"
180export CLHEP_BASE_DIR
181echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
182fi
183
184#if [ X$g4clhep_base_dir != X/usr -o X$g4clhep_base_dir != X/usr/local ] ; then
185#CLHEP_BASE_DIR="$g4clhep_base_dir"
186#export CLHEP_BASE_DIR
187#echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
188#fi
189
190#+
191if [ X$g4clhep_include_dir != X ] ; then 
192CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
193export CLHEP_INCLUDE_DIR
194echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
195fi
196
197#+
198if [ X$g4clhep_lib_dir != X ] ; then 
199CLHEP_LIB_DIR="$g4clhep_lib_dir"
200export CLHEP_LIB_DIR
201echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
202fi
203
204#+
205if [ X$g4clhep_lib != X ] ; then 
206CLHEP_LIB="$g4clhep_lib"
207export CLHEP_LIB
208echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
209fi
210
211#+
212#
213# g4debug
214#
215if [ X$g4debug = Xy ] ; then 
216G4DEBUG=1
217export G4DEBUG
218echo "On this machine the G4DEBUG=\$G4DEBUG"
219fi
220
221#
222# g4analysis
223#
224#+
225if [ X$g4wanalysis_use = Xy ] ; then
226G4ANALYSIS_USE=1
227export G4ANALYSIS_USE
228echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE"
229fi 
230
231#
232# g4ui
233#
234#+
235if [ X$g4ui_none = Xy ] ; then
236G4UI_NONE=1
237export G4UI_NONE
238echo "On this machine G4UI_NONE is set - no UIs will be built"
239
240else
241echo "On this machine G4UI_NONE is not set - following UIs will be built:"
242
243#+
244if [ X$g4ui_build_xm_session = Xy ] ; then
245G4UI_BUILD_XM_SESSION=1
246export G4UI_BUILD_XM_SESSION
247echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
248fi 
249
250#+
251if [ X$g4ui_use_xm = Xy ] ; then
252G4UI_USE_XM=1
253export G4UI_USE_XM
254echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
255fi 
256
257#+
258if [ X$g4ui_build_win32_session = Xy ] ; then
259G4UI_BUILD_WIN32_SESSION=1
260export G4UI_BUILD_WIN32_SESSION
261echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
262fi 
263
264#+
265if [ X$g4ui_use_win32 = Xy ] ; then
266G4UI_USE_WIN32=1
267export G4UI_USE_WIN32
268echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
269fi 
270
271
272#+
273if [ X$g4ui_build_qt_session = Xy ] ; then
274G4UI_BUILD_QT_SESSION=1
275export G4UI_BUILD_QT_SESSION
276echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
277fi
278
279#+
280if [ X$g4ui_use_qt = Xy ] ; then
281G4UI_USE_QT=1
282export G4UI_USE_QT
283echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
284fi 
285
286fi
287# END OF G4UI_NONE block
288
289#
290# g4vis
291#
292#+
293if [ X$g4vis_none = Xy ] ; then
294G4VIS_NONE=1
295export G4VIS_NONE
296echo "On this machine G4VIS_NONE is set - no drivers will be built"
297
298else
299echo "On this machine G4VIS_NONE is not set - following drivers will be built:"
300
301#+
302if [ X$g4vis_build_dawn_driver = Xy ] ; then
303G4VIS_BUILD_DAWN_DRIVER=1
304export G4VIS_BUILD_DAWN_DRIVER
305echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
306fi 
307
308#+
309if [ X$g4vis_build_openglx_driver = Xy ] ; then
310G4VIS_BUILD_OPENGLX_DRIVER=1
311export G4VIS_BUILD_OPENGLX_DRIVER
312echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
313fi 
314
315#+
316if [ X$g4vis_build_openglxm_driver = Xy ] ; then
317G4VIS_BUILD_OPENGLXM_DRIVER=1
318export G4VIS_BUILD_OPENGLXM_DRIVER
319echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
320fi 
321
322#+
323if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
324G4VIS_BUILD_OPENGLWIN32_DRIVER=1
325export G4VIS_BUILD_OPENGLWIN32_DRIVER
326echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
327fi 
328
329#+
330if [ X$g4vis_build_oix_driver = Xy ] ; then
331G4VIS_BUILD_OIX_DRIVER=1
332export G4VIS_BUILD_OIX_DRIVER
333echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
334fi 
335
336#+
337if [ X$g4vis_build_raytracerx_driver = Xy ] ; then
338G4VIS_BUILD_RAYTRACERX_DRIVER=1
339export G4VIS_BUILD_RAYTRACERX_DRIVER
340echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
341fi 
342
343#+
344if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
345G4VIS_BUILD_OIWIN32_DRIVER=1
346export G4VIS_BUILD_OIWIN32_DRIVER
347echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
348fi 
349
350#+
351if [ X$g4vis_build_vrml_driver = Xy ] ; then
352G4VIS_BUILD_VRML_DRIVER=1
353export G4VIS_BUILD_VRML_DRIVER
354echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
355fi 
356
357#+
358if [ X$g4vis_build_openglqt_driver = Xy ] ; then
359G4VIS_BUILD_OPENGLQT_DRIVER=1
360export G4VIS_BUILD_OPENGLQT_DRIVER
361echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
362fi
363
364
365#+
366if [ X$g4vis_use_dawn = Xy ] ; then
367G4VIS_USE_DAWN=1
368export G4VIS_USE_DAWN
369echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
370fi 
371
372#+
373if [ X$g4vis_use_openglx = Xy ] ; then
374G4VIS_USE_OPENGLX=1
375export G4VIS_USE_OPENGLX
376echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
377fi 
378
379#+
380if [ X$g4vis_use_openglxm = Xy ] ; then
381G4VIS_USE_OPENGLXM=1
382export G4VIS_USE_OPENGLXM
383echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
384fi 
385
386#+
387if [ X$g4vis_use_openglwin32 = Xy ] ; then
388G4VIS_USE_OPENGLWIN32=1
389export G4VIS_USE_OPENGLWIN32
390echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
391fi 
392
393#+
394if [ X$g4vis_use_oix = Xy ] ; then
395G4VIS_USE_OIX=1
396export G4VIS_USE_OIX
397echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
398fi 
399
400#+
401if [ X$g4vis_use_raytracerx = Xy ] ; then
402G4VIS_USE_RAYTRACERX=1
403export G4VIS_USE_RAYTRACERX
404echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
405fi 
406
407#+
408if [ X$g4vis_use_oiwin32 = Xy ] ; then
409G4VIS_USE_OIWIN32=1
410export G4VIS_USE_OIWIN32
411echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
412fi 
413
414#+
415if [ X$g4vis_use_vrml = Xy ] ; then
416G4VIS_USE_VRML=1
417export G4VIS_USE_VRML
418echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
419fi 
420
421
422#+
423if [ X$g4vis_use_openglqt = Xy ] ; then
424G4VIS_USE_OPENGLQT=1
425export G4VIS_USE_OPENGLQT
426echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
427fi 
428
429
430fi
431# End of G4VIS_NONE block
432
433
434
435#+
436if [ X$g4vis_oglhome != X ] ; then
437OGLHOME="$g4vis_oglhome"
438export OGLHOME
439echo "On this machine the OGLHOME=\$OGLHOME"
440fi 
441
442#+
443if [ X$g4vis_oivhome != X ] ; then
444OIVHOME="$g4vis_oivhome"
445export OIVHOME
446if [ X\$g4non_display = X ] ; then
447echo "On this machine the OIVHOME=\$OIVHOME"
448fi
449fi 
450
451
452#+
453if [ X$g4vis_build_openglxm_driver != X ] ; then
454XMFLAGS="$g4vis_xmflags"
455export XMFLAGS
456if [ X\$g4non_display = X ] ; then
457echo "On this machine the XMFLAGS=\$XMFLAGS"
458fi
459fi 
460
461#+
462if [ X$g4vis_build_openglxm_driver != X ] ; then
463XMLIBS="$g4vis_xmlibs"
464export XMLIBS
465if [ X\$g4non_display = X ] ; then
466echo "On this machine the XMLIBS=\$XMLIBS"
467fi
468fi 
469
470#+
471if [ X$g4ui_build_xm_session != X ] ; then
472XMFLAGS="$g4vis_xmflags"
473export XMFLAGS
474if [ X\$g4non_display = X ] ; then
475echo "On this machine the XMFLAGS=\$XMFLAGS"
476fi
477fi 
478
479#+
480if [ X$g4vis_build_xm_session != X ] ; then
481XMLIBS="$g4vis_xmlibs"
482export XMLIBS
483if [ X\$g4non_display = X ] ; then
484echo "On this machine the XMLIBS=\$XMLIBS"
485fi
486fi 
487
488# Qt Flags and Libs, messy, but needed for backward compatibility
489#+
490if [ "X$g4ui_build_qt_session" = "Xy" -o "X$g4ui_use_qt" = "Xy" ] ; then
491QTFLAGS="$g4_qt_cxxflags"
492QTLIBS="$g4_qt_libs"
493QTMOC="$g4_qt_moc"
494export QTFLAGS
495export QTLIBS
496export QTMOC
497if [ X\$g4non_display = X ] ; then
498echo "On this machine the QTFLAGS=\$QTFLAGS"
499echo "On this machine the QTLIBS=\$QTLIBS"
500echo "On this machine the QTMOC=\$QTMOC"
501fi
502fi
503
504if [ "X$g4vis_build_openglqt_driver" = "Xy" -o "X$g4vis_build_openglqt_driver" = "Xy" ] ; then
505if [ "X\$QTFLAGS" = "X" ] ; then
506QTFLAGS="$g4_qt_cxxflags $g4_qt_gl_cxxflags"
507else
508QTFLAGS="\$QTFLAGS $g4_qt_gl_cxxflags"
509fi
510if [ "X\$QTMOC" = "X" ] ; then
511QTMOC="$g4_qt_moc"
512fi
513GLQTLIBS="$g4_qt_libs $g4_qt_gl_libs"
514export QTFLAGS
515export QTMOC
516export GLQTLIBS
517if [ X\$g4non_display = X ] ; then
518echo "On this machine the QTFLAGS=\$QTFLAGS"
519echo "On this machine the GLQTLIBS=\$GLQTLIBS"
520echo "On this machine the QTMOC=\$QTMOC"
521fi
522fi
523
524
525#
526# Use GDML module
527#
528#+
529if [ X$g4lib_build_gdml = Xy ] ; then
530G4LIB_BUILD_GDML=1
531export G4LIB_BUILD_GDML
532echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
533fi 
534
535if [ X$g4lib_build_gdml = Xy ] ; then
536XERCESCROOT=$g4gdml_xercesc_root
537export XERCESCROOT
538echo "On this machine the XERCESCROOT=\$XERCESCROOT"
539fi 
540
541
542#
543# Use G3TOG4 module
544#
545#+
546if [ X$g4wlib_build_g3tog4 = Xy ] ; then
547G4LIB_BUILD_G3TOG4=1
548export G4LIB_BUILD_G3TOG4
549echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
550fi 
551
552if [ X$g4w_use_g3tog4 = Xy ] ; then
553G4LIB_USE_G3TOG4=1
554export G4LIB_USE_G3TOG4
555echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
556fi 
557
558#
559# Use ZLIB module
560#
561#+
562if [ X$g4wlib_build_zlib = Xy ] ; then
563G4LIB_BUILD_ZLIB=1
564export G4LIB_BUILD_ZLIB
565echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
566fi 
567
568if [ X$g4w_use_zlib = Xy ] ; then
569G4LIB_USE_ZLIB=1
570export G4LIB_USE_ZLIB
571echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
572fi 
573
574#+
575#
576# g4shared
577#
578if [ X$g4lib_build_shared = Xy ] ; then
579G4LIB_BUILD_SHARED=1
580export G4LIB_BUILD_SHARED
581echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
582fi 
583
584if [ X$g4lib_build_static = Xy ] ; then
585G4LIB_BUILD_STATIC=1
586export G4LIB_BUILD_STATIC
587echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
588fi 
589
590#+
591#
592# g4granular
593#
594if [ X$g4lib_use_granular = Xy ] ; then
595G4LIB_USE_GRANULAR=1
596export G4LIB_USE_GRANULAR
597echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
598fi 
599
600#####################################################################
601
602#####################################################################
603# Create GNUmakefile.db to keep ALL GNUmakefile DB :)
604
605if test -f \$G4INSTALL/config/scripts/GNUmakefile.db ; then
606mv \$G4INSTALL/config/scripts/GNUmakefile.db \$G4LIB/\$G4SYSTEM/GNUmakefile.db.bac
607fi
608
609# Be careful: first time there is no $G4LIB!
610
611mkdir -p \$G4LIB/\$G4SYSTEM
612
613$g4make -n -p -f \$G4INSTALL/config/scripts/GNUmakefile > \$G4LIB/\$G4SYSTEM/GNUmakefile.db
614
615echo ""
616echo "Starting build..."
617echo ""
618cd $g4install/source
619#echo `pwd`
620
621# There is no env!
622if [ X$g4global = Xy ] ; then
623echo ""
624rm -rf $g4conf/g4make.log
625$g4make global 2>&1 | tee $g4conf/g4make.log
626fi
627
628# There is env for binaries - for User: should be set in env.[c]sh!
629if [ X$g4granular = Xy ] ; then
630G4LIB_USE_GRANULAR=1
631export G4LIB_USE_GRANULAR
632rm -rf $g4conf/g4make.log
633$g4make 2>&1 | tee $g4conf/g4make.log
634fi
635
636if [ X$g4lib_build_dll = Xy ] ; then
637echo ""
638rm -rf $g4conf/g4make.log
639$g4make dll 2>&1 | tee $g4conf/g4make.log
640fi
641
642if [ X$g4lib_build_dyn = Xy ] ; then
643echo ""
644rm -rf $g4conf/g4make.log
645$g4make global G4LIB_BUILD_SHARED=1 2>&1 | tee $g4conf/g4make.log
646fi
647
648# Check for errors in log file
649if test -f \$g4conf/g4make.log ; then
650
651# There are two (at least) shells 'sh' and 'bash' with
652# different arithmetic expansion...So we are doing it by 'text'
653# in two steps...
654 
655err=\`grep " Error " $g4conf/g4make.log | wc -w\` 
656int=\`grep " Interrupt " $g4conf/g4make.log | wc -w\` 
657stp=\`grep Stop\. $g4conf/g4make.log | wc -w\` 
658
659err2=\`echo \$err\`
660int2=\`echo \$int\`
661stp2=\`echo \$stp\`
662
663if [ X\$err2 = X0 -a X\$int2 = X0 ] ; then
664echo ""
665echo "####################################################"
666echo "# Your Geant4 installation seems to be successful!  "
667echo "# To be sure please have a look into the log file:  "
668echo "# $g4conf/g4make.log                                "
669echo "####################################################"
670echo ""
671else
672echo ""
673echo "############################################################"
674echo "# It looks like you had errors during Geant4 installation   "
675echo "# (or interrupted installation)!                            "
676echo "# Please check log file:                                    "
677echo "# $g4conf/g4make.log                                        "
678echo "############################################################"
679echo ""
680fi 
681else
682echo ""
683echo "############################################################"
684echo "# It looks like you had errors during Geant4 installation   "
685echo "# (or interrupted installation)!                            "
686echo "# You have no log file:                                     "
687echo "# $g4conf/g4make.log                                        "
688echo "############################################################"
689echo ""
690fi
691
692!GROK!THIS!
693
694: In the following dollars and backticks do not need the extra backslash.
695$spitshell >>install.sh <<'!NO!SUBS!'
696!NO!SUBS!
697chmod 755 install.sh
698$eunicefix install.sh
699
Note: See TracBrowser for help on using the repository browser.