#!/bin/sh -f # # File produced by the obuild tool version 1.0 # for the package snovis with version v1r0. # #//////////////////////////////////////////////// # Usage : # UNIX> cd some_path/pack/version/obuild # ( UNIX> chmod a+x sh/broadcast_install ) # UNIX> sh/broadcast_install # #//////////////////////////////////////////////// obuild_args="$*" obuild_verbose=no obuild_set_x=no while test $# -ge 1 ; do case $1 in -v) obuild_verbose=yes ;; -x) obuild_set_x=yes ;; *) echo "unknown option : $1";exit ;; esac shift done if [ ${obuild_set_x} = yes ] ; then set -x fi # Binary directory is needed to create the obuild_find program. if [ "${OBUILD_PLATFORM}" = "" ] ; then obuild_platform=`uname` else obuild_platform=${OBUILD_PLATFORM} fi if [ "${obuild_platform}" = "" ] ; then echo "obuild_platform variable not defined." exit fi if [ "${OBUILD_DIR_BIN}" = "" ] ; then obuild_dir_bin=${obuild_platform}_obuild else obuild_dir_bin=${OBUILD_DIR_BIN} fi if [ "${obuild_dir_bin}" = "" ] ; then echo "obuild_dir_bin variable not defined." exit fi obuild_snovis_path=.. # Create the bin directory : /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}" if [ ! -e "${obuild_snovis_path}/obuild/sh/install" ] ; then echo "install script not found for package snovis." exit fi if [ ${obuild_verbose} = yes ] ; then echo "install setups of snovis"... fi cd "${obuild_snovis_path}/obuild" ./sh/install if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then echo "Program source obuild_find.cpp not found." exit fi if [ "${obuild_cxx_command}" = "" ] ; then if [ "${OBUILD_CXX}" != "" ] ; then obuild_find_compiler=${OBUILD_CXX} else obuild_find_compiler=c++ fi else obuild_find_compiler=${obuild_cxx_command} fi ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" unset obuild_find_compiler if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then echo "Program obuild_find not found." exit fi fi obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'` if [ "${obuild_OnX_path}" = "" ] ; then echo "Can't find OnX package." exit fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'` if [ "${obuild_G4Lab_path}" = "" ] ; then echo "Can't find G4Lab package." exit fi # install setup scripts of used packages : if [ ! -e "${obuild_OnX_path}/obuild/sh/broadcast_install" ] ; then echo "broadcast_install script not found for package OnX." exit fi cd "${obuild_OnX_path}/obuild" ./sh/broadcast_install ${obuild_args} if [ ! -e "${obuild_G4Lab_path}/obuild/sh/broadcast_install" ] ; then echo "broadcast_install script not found for package G4Lab." exit fi cd "${obuild_G4Lab_path}/obuild" ./sh/broadcast_install ${obuild_args}