autodeploylib.sh 846 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. PRO_DIR=`pwd`
  2. CONFIG_IVSysMan="IVSysMan.xml"
  3. cd ../../
  4. lib_name=(
  5. libmodulecomm.so
  6. libndt_cpu.so
  7. # libndt_gpu.so
  8. libxmlparam.so
  9. libivfault.so
  10. libivlog.so
  11. libivbacktrace.so
  12. libivexit.so
  13. )
  14. for x in ${lib_name[@]}
  15. do
  16. # echo "link lib $x"
  17. # patchelf --set-rpath '$ORIGIN' ./bin/$x
  18. echo "deploylib $x"
  19. cp ./bin/${x} ./
  20. ./deploylib.sh $x
  21. rm ${x}
  22. done
  23. xlib=`ls ./deploy/app/lib/lib*`
  24. for fileName in $xlib
  25. do
  26. patchelf --set-rpath '$ORIGIN' $fileName
  27. done
  28. #echo "creat IVSysMan.xml"
  29. #cp ./sh/tju64/xml/$CONFIG_IVSysMan ./deploy/app/IVSysMan.xml
  30. #cp ./other/ADS_decision.xml ./deploy/app/ADS_decision.xml
  31. #sed -i "s|xxxxxx|$PRO_DIR/|g" ./deploy/app/IVSysMan.xml
  32. #cp ./bin/*.so ./deploy/app/lib/
  33. #cp ./sh/tju64/xml/* ./deploy/app/
  34. echo ""
  35. echo "***************"
  36. echo "*** done! ***"
  37. echo "***************"