From 1f8210957744095c7daec10b8fcfbce7d48e4046 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Mon, 8 Aug 2022 09:56:25 +0100 Subject: [PATCH] Use printf in place of echo for portability to Mac OS. Update author --- Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index e5674d2b..48653ac2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,11 +36,11 @@ endif if USE_GIT_VERSION common.c: gitversion.h gitversion.h: .git/index - echo "// Do not edit!" > gitversion.h - echo "// This file is automatically generated by 'git describe --dirty', if available." >> gitversion.h - echo -n " char git_version_string[] = \"" >> gitversion.h + printf "// Do not edit!\n" > gitversion.h + printf "// This file is automatically generated by 'git describe --dirty', if available.\n" >> gitversion.h + printf " char git_version_string[] = \"" >> gitversion.h git describe --dirty | tr -d '[[:space:]]' >> gitversion.h - echo "\";" >> gitversion.h + printf "\";\n" >> gitversion.h CLEANFILES += gitversion.h endif