Files
bx/scripts/update_tinystl.sh
Martijn Courteaux 5fb8c15e15 TinySTL attempt 3. (#342)
* Update TinySTL (attempt 2).

* Fix MSVC compilation issue for TinySTL.

* Fix MSVC warning.

* Favor ptrdiff_t for sizes in string.

* Update genie.lua

* Update math_test.cpp

* Update test.h

* Update test.h

---------

Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
2025-01-31 16:14:20 -08:00

17 lines
287 B
Bash
Executable File

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