From: Mike Brady Date: Mon, 8 Aug 2022 08:56:25 +0000 (+0100) Subject: Use printf in place of echo for portability to Mac OS. X-Git-Tag: 4.1-rc1~24^2~42^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f8210957744095c7daec10b8fcfbce7d48e4046;p=thirdparty%2Fshairport-sync.git Use printf in place of echo for portability to Mac OS. Update author --- 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