C++: rename *.cpp to *.cc

This commit is contained in:
Laurence Withers 2015-02-04 21:03:29 +00:00
parent b97124e9c7
commit fa3eacf953
8 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.cpp /* @P@/src/@NAME@/000_TopSource.cc
* *
* Copyright: ©@YEAR@, @COPYRIGHT@ * Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@> * Author: @AUTHOR@ <@EMAIL@>

View File

@ -8,7 +8,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
PREMOC="${SRC}.premoc.cpp" PREMOC="${SRC}.premoc.cpp"
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cpp' | sort)" MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
make_monolithic ${PREMOC} C || return 1 make_monolithic ${PREMOC} C || return 1
if [ "${PREMOC}" -nt "${SRC}" ] if [ "${PREMOC}" -nt "${SRC}" ]

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/000_TopSource.cpp /* @P@/src/@NAME@/000_TopSource.cc
* *
* Copyright: ©@YEAR@, @COPYRIGHT@ * Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@> * Author: @AUTHOR@ <@EMAIL@>

View File

@ -7,7 +7,7 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ] if [ -z "${@CNAME@_MONOLITHIC}" ]
then then
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cpp' | sort)" MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/TopSource.cpp /* @P@/src/@NAME@/000_TopSource.cc
* *
* Copyright: ©@YEAR@, @COPYRIGHT@ * Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@> * Author: @AUTHOR@ <@EMAIL@>

View File

@ -11,7 +11,7 @@ then
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.h' | sort)" MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.h' | sort)"
make_monolithic ${HDR} Ch || return 1 make_monolithic ${HDR} Ch || return 1
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cpp' | sort)" MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
make_monolithic ${SRC} C || return 1 make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1 @CNAME@_MONOLITHIC=1

View File

@ -12,9 +12,9 @@ then
echo "Building test programs..." echo "Building test programs..."
do_cmd mkdir -p obj/tests || return 1 do_cmd mkdir -p obj/tests || return 1
for SRC in src/@NAME@/*.cpp for SRC in src/@NAME@/*.cc
do do
TEST="obj/tests/$(basename ${SRC} | sed -e 's,.cpp$,,')" TEST="obj/tests/$(basename ${SRC} | sed -e 's,.cc$,,')"
MODIFIED=0 MODIFIED=0
for file in ${LIBS} ${SRC} src/@NAME@/build.tests for file in ${LIBS} ${SRC} src/@NAME@/build.tests
do do

View File

@ -1,4 +1,4 @@
/* @P@/src/@NAME@/???.cpp /* @P@/src/@NAME@/xxx.cc
* *
* Copyright: ©@YEAR@, @COPYRIGHT@ * Copyright: ©@YEAR@, @COPYRIGHT@
* Author: @AUTHOR@ <@EMAIL@> * Author: @AUTHOR@ <@EMAIL@>