PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_midcar.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_can_nvidia_agx #driver_can_kvaser #driver_can_vci driver_map_trace driver_radio_p900 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 decition_brain #decition_brain_ge3 controller_midcar 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 echo "build $x faile" exit 1 fi rm ${x} done lib_name=( libmodulecomm.so libndt_cpu.so libxmlparam.so libivfault.so libivlog.so libplatformif.so libivexit.so ) for x in ${lib_name[@]} do echo "link lib $x" patchelf --set-rpath '$ORIGIN' ./bin/$x if [ "$?" != 0 ];then echo -e "\e[31m 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 "***************"