buildat/3rdparty/cereal/scripts/renameincludes.sh
2014-09-16 18:02:01 +03:00

13 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
destdir="include_renamed"
echo -n "New prefix: "
read newprefix
cp -r include ${destdir}
newprefix=$(echo ${newprefix} | sed -e 's/\//\\\//')
find ${destdir} -name '*.hpp' -exec sed -i "s/#include <cereal/#include <${newprefix}\/cereal/" {} \;