Changeset 188 for snovis


Ignore:
Timestamp:
Feb 13, 2007, 6:14:29 AM (17 years ago)
Author:
barrand
Message:
 
Location:
snovis/trunk/obuild
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • snovis/trunk/obuild/setup.bat

    r137 r188  
    7676cd "%obuild_snovis_path%\%obuild_dir_bin%"
    7777IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     78FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     79cd "%obuild_pwd_snovis_0%"
     80SET obuild_pwd_snovis_0=
     81IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     82FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     83cd "%obuild_snovis_path%\%obuild_dir_bin%"
     84IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    7885FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  OnX v17r*`) DO SET obuild_OnX_path=%%j
    7986cd "%obuild_pwd_snovis_0%"
     
    8996
    9097REM # Execute setup of used packages :
     98IF NOT EXIST "%obuild_snova_path%\obuild\setup.bat"  ECHO setup.bat not found for package snova.  && GOTO obuild_return
     99CALL "%obuild_snova_path%\obuild\setup.bat"
     100@ECHO OFF
     101
    91102IF NOT EXIST "%obuild_OnX_path%\obuild\setup.bat"  ECHO setup.bat not found for package OnX.  && GOTO obuild_return
    92103CALL "%obuild_OnX_path%\obuild\setup.bat"
  • snovis/trunk/obuild/setup.csh

    r137 r188  
    171171  exit
    172172endif
     173set obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     174if ( "${obuild_find_exe}" == "" ) then
     175  echo "Variable obuild_find_exe not defined."
     176  exit
     177endif
    173178set obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    174179if ( "${obuild_find_exe}" == "" ) then
     
    179184
    180185# Execute setup of used packages :
     186source "${obuild_snova_path}/obuild/setup.csh"
     187
    181188source "${obuild_OnX_path}/obuild/setup.csh"
    182189
  • snovis/trunk/obuild/setup.sh

    r137 r188  
    154154  return
    155155fi
     156obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     157if [ "${obuild_snova_path}" = "" ] ; then
     158  echo "Can't find snova package."
     159  return
     160fi
     161if [ "${obuild_find_exe}" = "" ] ; then
     162  echo "Variable obuild_find_exe not defined."
     163  return
     164fi
    156165obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    157166if [ "${obuild_OnX_path}" = "" ] ; then
     
    170179
    171180# Execute setup of used packages :
     181if [ ! -e "${obuild_snova_path}/obuild/setup.sh" ] ; then
     182  echo "setup.sh not found for package snova."
     183  return
     184fi
     185. "${obuild_snova_path}/obuild/setup.sh"
     186
    172187if [ ! -e "${obuild_OnX_path}/obuild/setup.sh" ] ; then
    173188  echo "setup.sh not found for package OnX."
  • snovis/trunk/obuild/sh/broadcast_install

    r101 r188  
    9797  exit
    9898fi
     99obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     100if [ "${obuild_snova_path}" = "" ] ; then
     101  echo "Can't find snova package."
     102  exit
     103fi
     104if [ "${obuild_find_exe}" = "" ] ; then
     105  echo "Variable obuild_find_exe not defined."
     106  exit
     107fi
    99108obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'`
    100109if [ "${obuild_OnX_path}" = "" ] ; then
     
    113122
    114123# install setup scripts of used packages :
     124if [ ! -e "${obuild_snova_path}/obuild/sh/broadcast_install" ] ; then
     125  echo "broadcast_install script not found for package snova."
     126  exit
     127fi
     128cd "${obuild_snova_path}/obuild"
     129./sh/broadcast_install ${obuild_args}
     130
    115131if [ ! -e "${obuild_OnX_path}/obuild/sh/broadcast_install" ] ; then
    116132  echo "broadcast_install script not found for package OnX."
  • snovis/trunk/obuild/sh/build_Darwin_app

    r136 r188  
    6565/bin/cp "${obuild_path_app}" "${obuild_dir_app}/Contents/MacOS/${obuild_app}"
    6666
    67 # Copy dlls in Contents/bin of the .app :
    68 cd "${obuild_dir_dll}"
     67# Copy dlls (libs) in Contents/bin (/lib) of the .app :
    6968while test $# -ge 1 ; do 
    7069  if [ -e "$1" ] ; then
    71     eval /bin/cp "\"$1\"" .
     70    name=`basename "$1"`
     71    if [ "`basename ${name} .dylib`" = "${name}" ] ; then
     72      # .bundle
     73      #echo "debug : bundle : $1"
     74      eval /bin/cp "\"$1\"" "\"${obuild_dir_dll}\""/.
     75    else
     76      # .dylib
     77      #echo "debug : dylib : $1"
     78      eval /bin/cp "\"$1\"" "\"${obuild_dir_lib}\""/.
     79    fi
    7280#  else
    7381#    echo "$1 not found."
  • snovis/trunk/obuild/this.obuild

    r152 r188  
    127127
    128128    <setup>
     129      <exec from="snova"/>
     130
    129131      <exec from="OnX"/>
    130132      <exec from="G4Lab"/>
     
    133135
    134136      <run_path/>
    135 
    136 <!--
    137       <load_library_path copy="load_library_path" from="snova"/>
    138 -->
    139137
    140138      <load_library_path/>
Note: See TracChangeset for help on using the changeset viewer.