stl_reader.sh 415 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Build stl_reader
  3. set -e
  4. BASEDIR=$PWD/thirdparty/stl_reader
  5. DEPLOYDIR=$BASEDIR/install
  6. STL_READER_REPO="https://github.com/sreiter/stl_reader"
  7. mkdir -p "$BASEDIR"
  8. if [ -d "$DEPLOYDIR" ]; then
  9. rm -rf "$DEPLOYDIR"
  10. fi
  11. mkdir -p "$DEPLOYDIR"
  12. pushd "$BASEDIR"
  13. if [ -d "stl_reader" ]; then
  14. rm -rf "stl_reader"
  15. fi
  16. git clone --depth 1 $STL_READER_REPO
  17. cp stl_reader/stl_reader.h "$DEPLOYDIR"
  18. popd