Skip to content

Commit

Permalink
Replace .hpp headers because CRAN doesn't care about developers
Browse files Browse the repository at this point in the history
  • Loading branch information
r-barnes committed Mar 18, 2022
1 parent e901ca1 commit 191a6fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions update_from_upstream.sh
Expand Up @@ -23,6 +23,13 @@ find ./src/ -type f -exec sed -i -r 's/#include "..\/lib\//#include "/' {} \;
find ./src/ -type f -exec sed -i -r 's/#include <shapefil.h>/#include "shapefil.h"/' {} \;
find ./src/ -type f -exec sed -i -r 's/#include "shapelib\/shapefil.h"/#include "shapefil.h"/' {} \;

# Drop hpp file extensions because CRAN says "These are unlikely file names for
# src files" and CRAN would rather crush the souls of volunteer OSS developers
# than accept that hpp is a common and appropriate file extension for C++
# headers
find ./src/ -type f -name "*.hpp" -execdir rename 's/\.hpp/_hpp.h/' '{}' \;
find ./src/ -type f -exec sed -i -r 's/\.hpp/_hpp.h/' {} \;

rm -rf src/Makefile.noCMake

cp copy_to_src/* ./src/

0 comments on commit 191a6fd

Please sign in to comment.