3 echo "##########################################################################"
5 echo "##########################################################################"
7 # create the build directory
8 rm -rf $BUILD_DIR && mkdir -p $BUILD_DIR
10 # copy everything from the source
13 # LATA source directory
14 LATA_SRC_DIR=$BUILD_DIR/src
16 # LATA binary directory
17 LATA_BIN_DIR=$BUILD_DIR/bin
20 mkdir -p $BUILD_DIR/plugin_visit/build_paraview
22 # copy the patched CMake file... caution, the patch is provided with the archive
23 cp $BUILD_DIR/plugin_visit/CMakeLists.txt.para $BUILD_DIR/plugin_visit/build_paraview/CMakeLists.txt
25 cd $BUILD_DIR/plugin_visit/build_paraview
27 # add required symbolic links
28 ln -s $BUILD_DIR/plugin_visit/src/avtlataFileFormat.* .
30 for i in $LATA_SRC_DIR/commun_triou/*.cpp $LATA_SRC_DIR/triou_compat/*.cpp
32 ln -s $i `basename $i .cpp`.C
35 for i in $LATA_SRC_DIR/commun_triou/*.h $LATA_SRC_DIR/triou_compat/*.h
37 ln -s $i `basename $i`
40 # define the VISITLIBPATH variable
41 VISITLIBPATH=$BUILD_DIR/VisItLib
44 echo "INFO: running cmake -DVisItBridgePlugin_SOURCE_DIR=$BUILD_DIR/VisItLib"
46 cd $BUILD_DIR/build_paraview
47 cmake -DVisItBridgePlugin_SOURCE_DIR=$BUILD_DIR/VisItLib
50 echo "ERROR: failed to run command: cmake -DVisItBridgePlugin_SOURCE_DIR=$BUILD_DIR/VisItLib"
55 echo "INFO: fix vtkVisItReaderlataSM.xml"
56 sed '5a\ <Hints>\n <ReaderFactory extensions="lata"\n file_description="LATA Files">\n </ReaderFactory>\n </Hints> ' vtkVisItReaderlataSM.xml > tmp.txt
57 mv tmp.txt vtkVisItReaderlataSM.xml
63 echo "INFO: running command: make..."
72 echo "INFO: copy the shared objects library to the installation folder"
73 mkdir -p ${PRODUCT_INSTALL}/lib
74 cp libVisItReaderlata.so ${PRODUCT_INSTALL}/lib