update_tinystl.sh 287 B

12345678910111213141516
  1. #!/bin/bash -eux
  2. if [ $# != 1 ]; then
  3. echo "Usage: $0 <tinystl-upstream-folder>"
  4. exit 1
  5. fi
  6. SRC_DIR=$1
  7. DST_DIR="include/tinystl"
  8. pushd $(dirname $0)/..
  9. cp $SRC_DIR/include/TINYSTL/*.h $DST_DIR/
  10. find $DST_DIR -iname "*.h" -exec sed --in-place 's/<TINYSTL\//<tinystl\//g' {} \;
  11. popd