From 112a9c45573b9f28e7e9818cda24c28fff9e3f13 Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Thu, 8 Mar 2018 16:59:25 +0100 Subject: [PATCH] Fix up git_version target in Windows Makefile. --- packages/win32_inno/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile index 3d93c5681..611033e31 100755 --- a/packages/win32_inno/Makefile +++ b/packages/win32_inno/Makefile @@ -43,8 +43,9 @@ endif @echo "win32_inno install succeeded!" git_version: $(pd_src)/src/s_stuff.h.in - cd $(pd_src)/src/ && \ - sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h + @cd $(pd_src)/src/ && \ + sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h.new && \ + (test -f s_stuff.h && diff -q s_stuff.h s_stuff.h.new > /dev/null && rm -f s_stuff.h.new && echo s_stuff.h unchanged || (rm -f s_stuff.h && mv s_stuff.h.new s_stuff.h)) build_pd: git_version cd $(pd_src)/src && $(MAKE) -f makefile.mingw -- GitLab