Skip to content

Commit a4698cf

Browse files
committed
Use @ substitution as works better with cmake
1 parent 2f28f78 commit a4698cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ execute_process(COMMAND
1313
OUTPUT_VARIABLE GIT_DATE
1414
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
1515

16-
configure_file(verbena.in verbena)
16+
configure_file(verbena.in verbena @ONLY)
1717
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/verbena DESTINATION bin)
1818

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ all: ${SCRIPTS}
1515
.PHONY: FORCE
1616

1717
$(SCRIPTS): %: %.in FORCE
18-
sed -e "s/\$${GIT_SHA1}/${GIT_SHA1}/" -e "s/\$${GIT_DATE}/${GIT_DATE}/" $< >$@
18+
sed -e "s/@GIT_SHA1@/${GIT_SHA1}/" -e "s/@GIT_DATE@/${GIT_DATE}/" $< >$@
1919

2020
clean:
2121
rm ${SCRIPTS}

verbena.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# to be used, possibly with bundled dependencies
1414
PATH=`dirname $0`:${FSLDIR}/bin:${PATH}
1515

16-
echo "VERBENA version tag '${GIT_SHA1}'"
17-
echo "last commit '${GIT_DATE}'"
16+
echo "VERBENA version tag '@GIT_SHA1@'"
17+
echo "last commit '@GIT_DATE@'"
1818
echo
1919

2020
Usage() {

0 commit comments

Comments
 (0)