Newer
Older
orange2022 / src / openslam_gmapping / build_tools / pretty_compiler
  1. #!/bin/sh
  2.  
  3.  
  4. #echo "pretty: verbose = $VERBOSE"
  5.  
  6. if ($VERBOSE)
  7. then
  8. echo $1;
  9. if ! eval $1
  10. then
  11. echo "Failed command was:"
  12. echo $1
  13. echo "in directory " `pwd`
  14. exit 1
  15. fi
  16. else
  17. if ! eval $1
  18. then
  19. echo "Failed command was:"
  20. echo $1
  21. echo "in directory " `pwd`
  22. exit 1
  23. fi
  24. fi
  25.  
  26. exit 0