mirror of
https://github.com/RPCS3/cereal.git
synced 2024-12-02 16:26:19 +00:00
8ec6ded75c
This is to allow projects to easily include Cereal into their project
13 lines
269 B
Bash
Executable File
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/" {} \;
|