C++: rename *.cpp to *.cc
This commit is contained in:
parent
b97124e9c7
commit
fa3eacf953
|
@ -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@>
|
|
@ -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}" ]
|
||||||
|
|
|
@ -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@>
|
|
@ -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
|
||||||
|
|
|
@ -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@>
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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@>
|
||||||
|
|
Loading…
Reference in New Issue