- Timestamp:
- Feb 9, 2007, 5:18:05 PM (17 years ago)
- Location:
- snovis/trunk/obuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
snovis/trunk/obuild/darwin_app.obuild
r135 r140 33 33 34 34 <!-- 35 ////////////// 36 /// Geant4 /// 37 ////////////// 38 --> 39 40 <copy_dir> 41 <from>${Geant4_home}/data</from> 42 <to>@@dir_bin@@/@@component@@.app/Contents/Resources/Geant4/.</to> 43 </copy_dir> 44 45 <!-- 35 46 //////////////////////////////////////////////////////// 36 47 /// The below is taken from OnXLab/obuild/Qt.obuild //// … … 39 50 <!-- 40 51 ///////////// 41 /// this ////52 /// OnXLab // 42 53 ///////////// 43 54 --> -
snovis/trunk/obuild/sh/build_darwin_app_snovis_session
r136 r140 81 81 /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}" 82 82 83 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then 84 if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then 85 echo "Program source obuild_platform.cpp not found." 86 exit 87 fi 88 if [ "${obuild_cxx_command}" = "" ] ; then 89 if [ "${OBUILD_CXX}" != "" ] ; then 90 obuild_platform_compiler=${OBUILD_CXX} 91 else 92 obuild_platform_compiler=c++ 93 fi 94 else 95 obuild_platform_compiler=${obuild_cxx_command} 96 fi 97 ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" 98 unset obuild_platform_compiler 99 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then 100 echo "Program obuild_platform not found." 101 exit 102 fi 103 fi 104 obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" 105 if [ "${obuild_platform_exe}" = "" ] ; then 106 echo "Variable obuild_platform_exe not defined." 107 exit 108 fi 109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 110 if [ ${obuild_platform_result} = yes ] ; then 111 CLHEP_home="/usr/local/CLHEP/2.0.3.1" 112 fi 113 unset obuild_platform_result 114 if [ "${obuild_platform_exe}" = "" ] ; then 115 echo "Variable obuild_platform_exe not defined." 116 exit 117 fi 118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 119 if [ ${obuild_platform_result} = yes ] ; then 120 Geant4_home="/usr/local/geant4/8.2" 121 fi 122 unset obuild_platform_result 83 123 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then 84 124 if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then … … 158 198 fi 159 199 160 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then161 if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then162 echo "Program source obuild_platform.cpp not found."163 exit164 fi165 if [ "${obuild_cxx_command}" = "" ] ; then166 if [ "${OBUILD_CXX}" != "" ] ; then167 obuild_platform_compiler=${OBUILD_CXX}168 else169 obuild_platform_compiler=c++170 fi171 else172 obuild_platform_compiler=${obuild_cxx_command}173 fi174 ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp"175 unset obuild_platform_compiler176 if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then177 echo "Program obuild_platform not found."178 exit179 fi180 fi181 obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform"182 200 if [ "${obuild_platform_exe}" = "" ] ; then 183 201 echo "Variable obuild_platform_exe not defined." … … 204 222 find "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/G4Lab/." -depth -name CVS -exec /bin/rm -R -f {} \; 205 223 find "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/G4Lab/." -depth -name .svn -exec /bin/rm -R -f {} \; 224 /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/Geant4/." 225 if [ -d "${Geant4_home}/data" ] ; then 226 /bin/cp -R "${Geant4_home}/data" "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/Geant4/." 227 else 228 echo "Directory ${Geant4_home}/data not found." 229 fi 230 find "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/Geant4/." -depth -name CVS -exec /bin/rm -R -f {} \; 231 find "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/Geant4/." -depth -name .svn -exec /bin/rm -R -f {} \; 206 232 /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/snovis_session.app/Contents/Resources/OnXLab/." 207 233 if [ -d "${obuild_OnXLab_path}/scripts" ] ; then
Note: See TracChangeset
for help on using the changeset viewer.