In order to get rid of the useless duplication of dimension specifiers a big cleanup of the file names has now been pushed to origin/master.
To change the file names dependent projects the following script should be helpful (assuming your header files are named ".hh" and cour implementation files ".cc", if you should adjust the script accordingly.):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | #!/bin/bash
files=$(grep -l "<mia/2d/2[dD].*>" $(find . -name "*.hh" -o -name "*.cc"))
for f in $files; do
sed -ie "s/\(<mia\/2d\/\)2[dD]/\1/g" $f ; echo $f;
done
for f in $files; do
sed -ie "s/\(<mia\/2d\/\)\([DIV]\)/\1\l\2/g" $f
done
files=$(grep -l "<mia/3d/3[dD].*>" $(find . -name "*.hh" -o -name "*.cc"))
for f in $files; do
sed -ie "s/\(<mia\/3d\/\)3[dD]/\1/g" $f ; echo $f;
done
for f in $files; do
sed -ie "s/\(<mia\/3d\/\)\([DIV]\)/\1\l\2/g" $f
done
|
After applying this script from the root of your source tree, the project should compile with the new MIA code. To clean up the temporary files you might want to run
rm $(find . -name "*.hhe" -o -name "*.cce")