#!/bin/sh -f # # File produced by the obuild tool version 1.0 # for the package osc_snovis with version v1r0. # #//////////////////////////////////////////////// # Usage : # UNIX> cd some_path/pack/version/obuild # ( UNIX> chmod a+x sh/build ) # UNIX> sh/build # #//////////////////////////////////////////////// obuild_verbose=no obuild_set_x=no obuild_args="" while test $# -ge 1 ; do case $1 in -h) echo "Usage :" echo " UNIX> sh/build [Options]" echo "Options :" echo " -v : verbose." echo " -x : execute with set -x." echo " -* : passed to packages build script." echo "" exit ;; -v) obuild_verbose=yes;obuild_args="${obuild_args} $1" ;; -x) obuild_set_x=yes;obuild_args="${obuild_args} $1" ;; *) obuild_args="${obuild_args} $1" ;; esac shift done if [ ${obuild_set_x} = yes ] ; then set -x fi 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_pwd=`pwd` obuild_osc_snovis_path=`dirname "${obuild_pwd}"` unset obuild_pwd # Create the bin directory : /bin/mkdir -p "${obuild_osc_snovis_path}/${obuild_dir_bin}" obuild_pwd_osc_snovis_0=`pwd` if [ ! -e "${obuild_osc_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then if [ ! -e "${obuild_osc_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_osc_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_osc_snovis_path}/obuild/cpp/obuild_find.cpp" unset obuild_find_compiler if [ ! -e "${obuild_osc_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then echo "Program obuild_find not found." exit fi fi obuild_find_exe="${obuild_osc_snovis_path}/${obuild_dir_bin}/obuild_find" if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_obuild_path=`"${obuild_find_exe}" obuild 'v1r0'` if [ "${obuild_obuild_path}" = "" ] ; then echo "Can't find obuild package." exit fi cd "${obuild_obuild_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build obuild/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_foreign_path=`"${obuild_find_exe}" foreign 'v1r0'` if [ "${obuild_foreign_path}" = "" ] ; then echo "Can't find foreign package." exit fi cd "${obuild_foreign_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build foreign/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r114p3'` if [ "${obuild_zlib_path}" = "" ] ; then echo "Can't find zlib package." exit fi cd "${obuild_zlib_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build zlib/v1r114p3 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_expat_path=`"${obuild_find_exe}" expat 'v1r11p6'` if [ "${obuild_expat_path}" = "" ] ; then echo "Can't find expat package." exit fi cd "${obuild_expat_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build expat/v1r11p6 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r0p0'` if [ "${obuild_Slash_path}" = "" ] ; then echo "Can't find Slash package." exit fi cd "${obuild_Slash_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build Slash/v1r0p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r0'` if [ "${obuild_Lib_path}" = "" ] ; then echo "Can't find Lib package." exit fi cd "${obuild_Lib_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build Lib/v8r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_HCL_path=`"${obuild_find_exe}" HCL 'v7r0'` if [ "${obuild_HCL_path}" = "" ] ; then echo "Can't find HCL package." exit fi cd "${obuild_HCL_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build HCL/v7r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_Midnight_path=`"${obuild_find_exe}" Midnight 'v4r0p0'` if [ "${obuild_Midnight_path}" = "" ] ; then echo "Can't find Midnight package." exit fi cd "${obuild_Midnight_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build Midnight/v4r0p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_Minuit_path=`"${obuild_find_exe}" Minuit 'v1r140p4'` if [ "${obuild_Minuit_path}" = "" ] ; then echo "Can't find Minuit package." exit fi cd "${obuild_Minuit_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build Minuit/v1r140p4 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_Rio_path=`"${obuild_find_exe}" Rio 'v7r1'` if [ "${obuild_Rio_path}" = "" ] ; then echo "Can't find Rio package." exit fi cd "${obuild_Rio_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build Rio/v7r1 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r165p2'` if [ "${obuild_HDF5_path}" = "" ] ; then echo "Can't find HDF5 package." exit fi cd "${obuild_HDF5_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build HDF5/v1r165p2 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_BatchLab_path=`"${obuild_find_exe}" BatchLab 'v1r0'` if [ "${obuild_BatchLab_path}" = "" ] ; then echo "Can't find BatchLab package." exit fi cd "${obuild_BatchLab_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build BatchLab/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_UseAIDA_path=`"${obuild_find_exe}" UseAIDA 'v1r0p2'` if [ "${obuild_UseAIDA_path}" = "" ] ; then echo "Can't find UseAIDA package." exit fi cd "${obuild_UseAIDA_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build UseAIDA/v1r0p2 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r62p1'` if [ "${obuild_jpeg_path}" = "" ] ; then echo "Can't find jpeg package." exit fi cd "${obuild_jpeg_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build jpeg/v1r62p1 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r0132p1'` if [ "${obuild_dvi2bitmap_path}" = "" ] ; then echo "Can't find dvi2bitmap package." exit fi cd "${obuild_dvi2bitmap_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build dvi2bitmap/v1r0132p1 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r219p0'` if [ "${obuild_freetype2_path}" = "" ] ; then echo "Can't find freetype2 package." exit fi cd "${obuild_freetype2_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build freetype2/v1r219p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r244p0'` if [ "${obuild_CoinGL_path}" = "" ] ; then echo "Can't find CoinGL package." exit fi cd "${obuild_CoinGL_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build CoinGL/v1r244p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_CoinXt_path=`"${obuild_find_exe}" CoinXt 'v1r122p0'` if [ "${obuild_CoinXt_path}" = "" ] ; then echo "Can't find CoinXt package." exit fi cd "${obuild_CoinXt_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build CoinXt/v1r122p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_CoinWin_path=`"${obuild_find_exe}" CoinWin 'v1r50p4'` if [ "${obuild_CoinWin_path}" = "" ] ; then echo "Can't find CoinWin package." exit fi cd "${obuild_CoinWin_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build CoinWin/v1r50p4 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_CoinQt_path=`"${obuild_find_exe}" CoinQt 'v1r130p0'` if [ "${obuild_CoinQt_path}" = "" ] ; then echo "Can't find CoinQt package." exit fi cd "${obuild_CoinQt_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build CoinQt/v1r130p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_CoinPython_path=`"${obuild_find_exe}" CoinPython 'v1r0'` if [ "${obuild_CoinPython_path}" = "" ] ; then echo "Can't find CoinPython package." exit fi cd "${obuild_CoinPython_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build CoinPython/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r6p0'` if [ "${obuild_HEPVis_path}" = "" ] ; then echo "Can't find HEPVis package." exit fi cd "${obuild_HEPVis_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build HEPVis/v6r6p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_KUIP_path=`"${obuild_find_exe}" KUIP 'v1r950303p16'` if [ "${obuild_KUIP_path}" = "" ] ; then echo "Can't find KUIP package." exit fi cd "${obuild_KUIP_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build KUIP/v1r950303p16 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r0'` if [ "${obuild_OnX_path}" = "" ] ; then echo "Can't find OnX package." exit fi cd "${obuild_OnX_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build OnX/v17r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_OnXLab_path=`"${obuild_find_exe}" OnXLab 'v1r0'` if [ "${obuild_OnXLab_path}" = "" ] ; then echo "Can't find OnXLab package." exit fi cd "${obuild_OnXLab_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build OnXLab/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_VisAIDA_path=`"${obuild_find_exe}" VisAIDA 'v1r0'` if [ "${obuild_VisAIDA_path}" = "" ] ; then echo "Can't find VisAIDA package." exit fi cd "${obuild_VisAIDA_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build VisAIDA/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_OpenPAW_path=`"${obuild_find_exe}" OpenPAW 'v3r0'` if [ "${obuild_OpenPAW_path}" = "" ] ; then echo "Can't find OpenPAW package." exit fi cd "${obuild_OpenPAW_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build OpenPAW/v3r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r0p0'` if [ "${obuild_G4Lab_path}" = "" ] ; then echo "Can't find G4Lab package." exit fi cd "${obuild_G4Lab_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build G4Lab/v8r0p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_G4Simple_path=`"${obuild_find_exe}" G4Simple 'v2r0p0'` if [ "${obuild_G4Simple_path}" = "" ] ; then echo "Can't find G4Simple package." exit fi cd "${obuild_G4Simple_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build G4Simple/v2r0p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_G4Examples_path=`"${obuild_find_exe}" G4Examples 'v1r0'` if [ "${obuild_G4Examples_path}" = "" ] ; then echo "Can't find G4Examples package." exit fi cd "${obuild_G4Examples_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build G4Examples/v1r0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'` if [ "${obuild_bhep_path}" = "" ] ; then echo "Can't find bhep package." exit fi cd "${obuild_bhep_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build bhep/v1r4p2 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'` if [ "${obuild_snova_path}" = "" ] ; then echo "Can't find snova package." exit fi cd "${obuild_snova_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build snova/v2r0p0 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi if [ "${obuild_find_exe}" = "" ] ; then echo "Variable obuild_find_exe not defined." exit fi obuild_snovis_path=`"${obuild_find_exe}" snovis 'v1r1'` if [ "${obuild_snovis_path}" = "" ] ; then echo "Can't find snovis package." exit fi cd "${obuild_snovis_path}/obuild" if [ ${obuild_verbose} = yes ] ; then set -x;fi echo "build snovis/v1r1 ..." ./sh/build ${obuild_args} obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi if [ ${obuild_verbose} = yes ] ; then set +x;fi cd "${obuild_pwd_osc_snovis_0}" unset obuild_pwd_osc_snovis_0