123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- PRO_DIR=`pwd`
- CONFIG_IVSysMan="IVSysMan_vv7-6511.xml"
- check_result=`whereis patchelf | awk '{print $2}'`
- if [ ! $check_result ];then
- echo -e "\e[31m no found patchelf, Plz install patchelf first\e[0m"
- exit 1
- fi
- app_name=(
- #driver_lidar_rs16
- #driver_lidar_vlp16
- #driver_gps_hcp2
- driver_radio_p900
- #driver_can_nvidia_agx
- #driver_can_kvaser
- #driver_can_vci
- #driver_map_trace
- #detection_radar_delphi_esr
- #detection_lidar_grid
- #view_pointcloud
- #view_gps
- #view_rawcan
- #view_radar
- #IVSysMan
- #ivmapmake
- #view_ivlog
- #tool_querymsg
- #detection_chassis
- #ui_ads_hmi
- #tool_mapcreat
- #decition_brain
- #decition_brain_ge3
- #controller_ge3
- #controller_vv7
- #driver_map_xodrload
- #tool_xodrobj
- #ivlog_record
- #adciv_record
- )
- for x in ${app_name[@]}
- do
- echo "deploy $x"
- cp ./bin/${x} ./
- ./deploy.sh $x
- if [ "$?" == 1 ];then
- exit 1
- fi
- rm ${x}
- done
- :<<!
- lib_name=(
- libmodulecomm.so
- libndt_cpu.so
- libxmlparam.so
- libivfault.so
- libivlog.so
- libivexit.so
- libplatformif.so
- )
- for x in ${lib_name[@]}
- do
- echo "link lib $x"
- patchelf --set-rpath '$ORIGIN' ./bin/$x
- if [ "$?" != 0 ];then
- echo -e "\e[31m autodeploy.sh: patchelf $EXE faile, Ensure patchelf tool installed\e[0m"
- exit 1
- fi
- done
- echo "creat IVSysMan.xml"
- cp ./other/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
- cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
- sed -i "s|xxxxxx|$PRO_DIR/deploy/app|g" ./deploy/app/IVSysMan.xml
- cp ./bin/*.so ./deploy/app/lib/
- !
- echo ""
- echo "***************"
- echo "*** done! ***"
- echo "***************"
|