Make include guard in version.hpp uppercase

This commit is contained in:
Bob Polis 2024-12-31 10:52:18 +01:00
parent 27f42b1623
commit 64b81076c9
2 changed files with 5 additions and 4 deletions

View File

@ -85,7 +85,8 @@ else
cp $tplroot/Makefile.unified $proj/Makefile cp $tplroot/Makefile.unified $proj/Makefile
cp $tplroot/precomp.hpp $proj/src cp $tplroot/precomp.hpp $proj/src
cp -r $tplroot/tests $proj/ cp -r $tplroot/tests $proj/
sed -e "s/{PROJECT}/$proj/" $tplroot/version.hpp > $proj/src/version.hpp uproj=$(echo $proj | tr '[:lower:]' '[:upper:]')
sed -e "s/{PROJECT}/$proj/" -e "s/{PROJ}/$uproj/" $tplroot/version.hpp > $proj/src/version.hpp
sed -e "s/{PROJECT}/$proj/" $tplroot/version.cpp > $proj/src/version.cpp sed -e "s/{PROJECT}/$proj/" $tplroot/version.cpp > $proj/src/version.cpp
if [ $library = 1 ] if [ $library = 1 ]

View File

@ -1,8 +1,8 @@
#ifndef {PROJECT}_VERSION_H_ #ifndef _{PROJ}_VERSION_H_
#define {PROJECT}_VERSION_H_ #define _{PROJ}_VERSION_H_
#include <string> #include <string>
std::string {PROJECT}_version(); std::string {PROJECT}_version();
#endif // {PROJECT}_VERSION_H_ #endif // _{PROJ}_VERSION_H_