]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Use printf in place of echo for portability to Mac OS.
authorMike Brady <mike@Mikes-iMac.local>
Mon, 8 Aug 2022 08:56:25 +0000 (09:56 +0100)
committerMike Brady <mike@Mikes-iMac.local>
Mon, 8 Aug 2022 08:56:25 +0000 (09:56 +0100)
Update author

Makefile.am

index e5674d2b09d54af9d240b9bc6fb1eae680fc6d49..48653ac2bab4916a34a0280a094a828f5fcd233d 100644 (file)
@@ -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