proto.sh 594 B

123456789101112131415161718192021
  1. ###
  2. # @Author: yct 18202736439@163.com
  3. # @Date: 2022-07-26 23:01:22
  4. # @LastEditors: yct 18202736439@163.com
  5. # @LastEditTime: 2022-09-30 18:51:59
  6. # @FilePath: /puai_wj_2021/proto.sh
  7. # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. ###
  9. #!/bin/bash
  10. proto_source_path=""
  11. if [ -n "$1" ]; then
  12. proto_source_path=$1
  13. else
  14. echo "can't find input path param, exit 0."
  15. exit 0
  16. fi
  17. protoc -I=${proto_source_path}/ velodyne_config.proto --cpp_out=${proto_source_path}/