Import Geant4 9.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:25:56 +02:00
parent 74cad5e589
commit 89a9605df1
4440 changed files with 379508 additions and 189225 deletions
+55 -51
View File
@@ -629,7 +629,7 @@ fi
# Create GNUmakefile.db to keep ALL GNUmakefile DB :)
if test -f \$G4INSTALL/config/scripts/GNUmakefile.db ; then
mv \$G4INSTALL/config/scripts/GNUmakefile.db \$G4LIB/\$G4SYSTEM/GNUmakefile.db.bac
mv \$G4INSTALL/config/scripts/GNUmakefile.db \$G4LIB/\$G4SYSTEM/GNUmakefile.db.bac
fi
# Be careful: first time there is no $G4LIB!
@@ -641,78 +641,82 @@ $g4make -n -p -f \$G4INSTALL/config/scripts/GNUmakefile > \$G4LIB/\$G4SYSTEM/GNU
echo ""
echo "Starting build..."
echo ""
echo "Cleaning up $g4conf/g4make.log"
rm -rf $g4conf/g4make.log
cd $g4install/source
#echo `pwd`
if test $g4make_jobs -gt 1 ; then
$g4make obj -j $g4make_jobs
fi
# There is no env!
if [ X$g4global = Xy ] ; then
echo ""
rm -rf $g4conf/g4make.log
$g4make global 2>&1 | tee $g4conf/g4make.log
echo "Building global libraries..."
$g4make global 2>&1 | tee $g4conf/g4make.log
fi
# There is env for binaries - for User: should be set in env.[c]sh!
if [ X$g4granular = Xy ] ; then
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
rm -rf $g4conf/g4make.log
$g4make 2>&1 | tee $g4conf/g4make.log
echo "Building granular libraries..."
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
$g4make 2>&1 | tee $g4conf/g4make.log
fi
if [ X$g4lib_build_dll = Xy ] ; then
echo ""
rm -rf $g4conf/g4make.log
$g4make dll 2>&1 | tee $g4conf/g4make.log
echo "Building WIN32 DLLs..."
$g4make dll 2>&1 | tee $g4conf/g4make.log
fi
if [ X$g4lib_build_dyn = Xy ] ; then
echo ""
rm -rf $g4conf/g4make.log
$g4make global G4LIB_BUILD_SHARED=1 2>&1 | tee $g4conf/g4make.log
echo ""
rm -rf $g4conf/g4make.log
$g4make global G4LIB_BUILD_SHARED=1 2>&1 | tee $g4conf/g4make.log
fi
# Check for errors in log file
if test -f \$g4conf/g4make.log ; then
# There are two (at least) shells 'sh' and 'bash' with
# different arithmetic expansion...So we are doing it by 'text'
# in two steps...
# There are two (at least) shells 'sh' and 'bash' with
# different arithmetic expansion...So we are doing it by 'text'
# in two steps...
err=\`grep " Error " $g4conf/g4make.log | wc -w\`
int=\`grep " Interrupt " $g4conf/g4make.log | wc -w\`
stp=\`grep Stop\. $g4conf/g4make.log | wc -w\`
err=\`grep " Error " $g4conf/g4make.log | wc -w\`
int=\`grep " Interrupt " $g4conf/g4make.log | wc -w\`
stp=\`grep Stop\. $g4conf/g4make.log | wc -w\`
err2=\`echo \$err\`
int2=\`echo \$int\`
stp2=\`echo \$stp\`
err2=\`echo \$err\`
int2=\`echo \$int\`
stp2=\`echo \$stp\`
if [ X\$err2 = X0 -a X\$int2 = X0 ] ; then
echo ""
echo "####################################################"
echo "# Your Geant4 installation seems to be successful! "
echo "# To be sure please have a look into the log file: "
echo "# $g4conf/g4make.log "
echo "####################################################"
echo ""
if [ X\$err2 = X0 -a X\$int2 = X0 ] ; then
echo ""
echo "####################################################"
echo "# Your Geant4 installation seems to be successful! "
echo "# To be sure please have a look into the log file: "
echo "# $g4conf/g4make.log "
echo "####################################################"
echo ""
else
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# Please check log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
fi
else
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# Please check log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
fi
else
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# You have no log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# You have no log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
fi
!GROK!THIS!