source: trunk/config/scripts/move.sh.SH @ 1255

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

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

File size: 10.4 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 move.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 >move.sh <<!GROK!THIS!
25######################################
26#
27# g4system.U
28#
29#+
30G4SYSTEM="$g4system"
31export G4SYSTEM
32echo "On this machine the G4SYSTEM=\$G4SYSTEM"
33
34#
35# g4dirs.U
36#
37#+
38G4INSTALL="$g4install"
39export G4INSTALL
40echo "On this machine the G4INSTALL=\$G4INSTALL"
41
42#+
43if [ X$g4include != X -a X$g4include != Xn ] ; then
44G4INCLUDE="$g4include"
45export G4INCLUDE
46echo "On this machine the G4INCLUDE=\$G4INCLUDE"
47fi
48
49#+
50if [ X$g4tmp != X ] ; then
51G4TMP="$g4tmp"
52export G4TMP
53echo "On this machine the G4TMP=\$G4TMP"
54fi
55
56#+
57if [ X$g4lib != X ] ; then 
58G4LIB="$g4lib"
59export G4LIB
60echo "On this machine the G4LIB=\$G4LIB"
61fi
62
63#+
64if [ X$g4lib != X ] ; then 
65G4BIN="$g4lib/../bin"
66export G4BIN
67fi
68
69#+
70if [ X$g4levelgammadata != X ] ; then 
71G4LEVELGAMMADATA="$g4levelgammadata"
72export G4LEVELGAMMADATA
73echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
74fi
75
76#+
77if [ X$g4radioactivedata != X ] ; then 
78G4RADIOACTIVEDATA="$g4radioactivedata"
79export G4RADIOACTIVEDATA
80echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
81fi
82
83#+
84if [ X$g4ledata != X ] ; then 
85G4LEDATA="$g4ledata"
86export G4LEDATA
87echo "On this machine the G4LEDATA=\$G4LEDATA"
88fi
89
90#+
91if [ X$g4neutronhpcrosssections != X ] ; then 
92G4NEUTRONHPDATA="$g4neutronhpcrosssections"
93export G4NEUTRONHPDATA
94echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
95fi
96
97#+
98if [ X$g4abladata != X ] ; then 
99G4ABLADATA="$g4abladata"
100export G4ABLADATA
101echo "On this machine the G4ABLADATA=\$G4ABLADATA"
102fi
103
104
105
106#+
107#if [ X$g4elasticdata != X ] ; then
108#G4ELASTICDATA="$g4elasticdata"
109#export G4ELASTICDATA
110#echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
111#fi
112
113#
114# g4clhep.U
115#
116if [ X$g4clhep_base_dir != X/usr -o X$g4clhep_base_dir != X/usr/local ] ; then 
117CLHEP_BASE_DIR="$g4clhep_base_dir"
118export CLHEP_BASE_DIR
119echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
120fi
121
122#+
123if [ X$g4clhep_include_dir != X ] ; then 
124CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
125export CLHEP_INCLUDE_DIR
126echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
127fi
128
129#+
130if [ X$g4clhep_lib_dir != X ] ; then 
131CLHEP_LIB_DIR="$g4clhep_lib_dir"
132export CLHEP_LIB_DIR
133echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
134fi
135
136#+
137if [ X$g4clhep_lib != X ] ; then 
138CLHEP_LIB="$g4clhep_lib"
139export CLHEP_LIB
140echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
141fi
142
143#+
144#
145# g4debug
146#
147if [ X$g4debug = Xy ] ; then 
148G4DEBUG=1
149export G4DEBUG
150echo "On this machine the G4DEBUG=\$G4DEBUG"
151fi
152
153#
154# g4analysis
155#
156#+
157if [ X$g4wanalysis_use = Xy ] ; then
158G4ANALYSIS_USE=1
159export G4ANALYSIS_USE
160echo "On this machine the G4ANALYSIS_USE=\$G4ANALYSIS_USE"
161fi 
162
163#
164# g4ui
165#
166#+
167if [ X$g4ui_build_xm_session = Xy ] ; then
168G4UI_BUILD_XM_SESSION=1
169export G4UI_BUILD_XM_SESSION
170echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
171fi 
172
173#+
174if [ X$g4ui_use_xm = Xy ] ; then
175G4UI_USE_XM=1
176export G4UI_USE_XM
177echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
178fi 
179
180#+
181if [ X$g4ui_build_win32_session = Xy ] ; then
182G4UI_BUILD_WIN32_SESSION=1
183export G4UI_BUILD_WIN32_SESSION
184echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
185fi 
186
187#+
188if [ X$g4ui_use_win32 = Xy ] ; then
189G4UI_USE_WIN32=1
190export G4UI_USE_WIN32
191echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
192fi 
193
194
195#+
196if [ X$g4ui_build_qt_session = Xy ] ; then
197G4UI_BUILD_QT_SESSION=1
198export G4UI_BUILD_QT_SESSION
199echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
200fi 
201
202#+
203if [ X$g4ui_use_qt = Xy ] ; then
204G4UI_USE_QT=1
205export G4UI_USE_QT
206echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
207fi 
208
209
210
211#
212# g4vis
213#
214#+
215if [ X$g4vis_build_dawn_driver = Xy ] ; then
216G4VIS_BUILD_DAWN_DRIVER=1
217export G4VIS_BUILD_DAWN_DRIVER
218echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
219fi 
220
221#+
222if [ X$g4vis_build_openglx_driver = Xy ] ; then
223G4VIS_BUILD_OPENGLX_DRIVER=1
224export G4VIS_BUILD_OPENGLX_DRIVER
225echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
226fi 
227
228#+
229if [ X$g4vis_build_openglxm_driver = Xy ] ; then
230G4VIS_BUILD_OPENGLXM_DRIVER=1
231export G4VIS_BUILD_OPENGLXM_DRIVER
232echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
233fi 
234
235#+
236if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
237G4VIS_BUILD_OPENGLWIN32_DRIVER=1
238export G4VIS_BUILD_OPENGLWIN32_DRIVER
239echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
240fi 
241
242#+
243if [ X$g4vis_build_oix_driver = Xy ] ; then
244G4VIS_BUILD_OIX_DRIVER=1
245export G4VIS_BUILD_OIX_DRIVER
246echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
247fi 
248
249#+
250if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
251G4VIS_BUILD_OIWIN32_DRIVER=1
252export G4VIS_BUILD_OIWIN32_DRIVER
253echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
254fi 
255
256#+
257if [ X$g4vis_build_vrml_driver = Xy ] ; then
258G4VIS_BUILD_VRML_DRIVER=1
259export G4VIS_BUILD_VRML_DRIVER
260echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
261fi 
262
263#+
264if [ X$g4vis_build_openglqt_driver = Xy ] ; then
265G4VIS_BUILD_OPENGLQT_DRIVER=1
266export G4VIS_BUILD_OPENGLQT_DRIVER
267echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
268fi 
269
270
271
272#+
273if [ X$g4vis_use_dawn = Xy ] ; then
274G4VIS_USE_DAWN=1
275export G4VIS_USE_DAWN
276echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
277fi 
278
279#+
280if [ X$g4vis_use_openglx = Xy ] ; then
281G4VIS_USE_OPENGLX=1
282export G4VIS_USE_OPENGLX
283echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
284fi 
285
286#+
287if [ X$g4vis_use_openglxm = Xy ] ; then
288G4VIS_USE_OPENGLXM=1
289export G4VIS_USE_OPENGLXM
290echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
291fi 
292
293#+
294if [ X$g4vis_use_openglwin32 = Xy ] ; then
295G4VIS_USE_OPENGLWIN32=1
296export G4VIS_USE_OPENGLWIN32
297echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
298fi 
299
300#+
301if [ X$g4vis_use_oix = Xy ] ; then
302G4VIS_USE_OIX=1
303export G4VIS_USE_OIX
304echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
305fi 
306
307#+
308if [ X$g4vis_use_oiwin32 = Xy ] ; then
309G4VIS_USE_OIWIN32=1
310export G4VIS_USE_OIWIN32
311echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
312fi 
313
314#+
315if [ X$g4vis_use_vrml = Xy ] ; then
316G4VIS_USE_VRML=1
317export G4VIS_USE_VRML
318echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
319fi 
320
321#+
322if [ X$g4vis_use_openglqt = Xy ] ; then
323G4VIS_USE_OPENGLQT=1
324export G4VIS_USE_OPENGLQT
325echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
326fi 
327
328
329
330#+
331if [ X$g4vis_oglhome != X ] ; then
332OGLHOME="$g4vis_oglhome"
333export OGLHOME
334echo "On this machine the OGLHOME=\$OGLHOME"
335fi 
336
337#+
338if [ X$g4_qthome != X ] ; then
339QTHOME=$g4_qthome
340export QTHOME
341echo "On this machine the QTHOME=\$QTHOME"
342fi 
343
344
345
346#
347# Use GDML module
348#
349#+
350if [ X$g4lib_build_gdml = Xy ] ; then
351G4LIB_BUILD_GDML=1
352export G4LIB_BUILD_GDML
353echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
354fi 
355
356if [ X$g4lib_build_gdml = Xy ] ; then
357XERCESCROOT=$g4gdml_xercesc_root
358export XERCESCROOT
359echo "On this machine the XERCESCROOT=\$XERCESCROOT"
360fi 
361
362
363
364#
365# Use G3TOG4 module
366#
367#+
368if [ X$g4wlib_build_g3tog4 = Xy ] ; then
369G4LIB_BUILD_G3TOG4=1
370export G4LIB_BUILD_G3TOG4
371echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
372fi 
373
374if [ X$g4w_use_g3tog4 = Xy ] ; then
375G4LIB_USE_G3TOG4=1
376export G4LIB_USE_G3TOG4
377echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
378fi 
379
380#
381# Use ZLIB module
382#
383#+
384if [ X$g4wlib_build_zlib = Xy ] ; then
385G4LIB_BUILD_ZLIB=1
386export G4LIB_BUILD_ZLIB
387echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
388fi 
389
390if [ X$g4w_use_zlib = Xy ] ; then
391G4LIB_USE_ZLIB=1
392export G4LIB_USE_ZLIB
393echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
394fi 
395
396
397#+
398#
399# g4shared
400#
401if [ X$g4lib_build_shared = Xy ] ; then
402G4LIB_BUILD_SHARED=1
403export G4LIB_BUILD_SHARED
404echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
405fi 
406
407if [ X$g4lib_build_static = Xy ] ; then
408G4LIB_BUILD_STATIC=1
409export G4LIB_BUILD_STATIC
410echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
411fi 
412
413#+
414#
415# g4granular
416#
417if [ X$g4lib_use_granular = Xy ] ; then
418G4LIB_USE_GRANULAR=1
419export G4LIB_USE_GRANULAR
420echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
421fi 
422
423#####################################################################
424
425#####################################################################
426
427echo ""
428echo "Starting installation..."
429echo ""
430
431cd $g4install
432#echo `pwd`
433
434
435# Remove 'verbosity' in 'tar' command
436# If not INCLUDE then install full tree in 'src' directory!
437#
438if [ X$g4includes_flag = Xn ] ; then
439if [ X$g4install != X$g4final_install ] ; then
440echo ""
441echo "Installing sources and headers..."
442echo ""
443mkdir -p $g4final_install/src/geant4/
444tar cf - Configure config/ source/ environments/ examples/ include/ |(cd $g4final_install/src/geant4/; tar xf -)
445fi
446fi
447
448########################################
449# There is no env!
450if [ X$g4includes_flag = Xy ] ; then
451
452if [ X$g4install != X$g4final_install ] ; then
453echo ""
454echo "Installing sources..."
455echo ""
456
457mkdir -p $g4final_install/src/geant4/
458tar cf - Configure config/ source/ environments/ examples/ |(cd $g4final_install/src/geant4/; tar xf -)
459fi
460
461echo ""
462echo "Installing headers..."
463echo ""
464cd $g4install/source
465$g4make includes dependencies=""
466fi
467
468# Move libraries
469if [ X$g4install != X$g4final_install ] ; then
470echo ""
471echo "Installing libraries..."
472echo ""
473mkdir -p $g4final_install/lib/geant4
474cd $g4install/lib
475tar cf - $g4system |(cd $g4final_install/lib/geant4; tar xf -)
476fi
477
478# For the reason of strange behaivior for DOTted directory...
479mkdir -p $g4final_install/src/geant4/.config
480cd $g4install/.config
481tar cf - . |(cd $g4final_install/src/geant4/.config; tar xf -)
482
483
484!GROK!THIS!
485
486: In the following dollars and backticks do not need the extra backslash.
487$spitshell >>move.sh <<'!NO!SUBS!'
488!NO!SUBS!
489chmod 755 move.sh
490$eunicefix move.sh
491
Note: See TracBrowser for help on using the repository browser.