summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-17 21:16:06 +0900
committerGitHub <noreply@github.com>2022-09-17 21:16:06 +0900
commit38a7a13ac6ed6bba2584def7d7121257eb85e051 (patch)
tree1c20408e50d0fdd78e6277d9fa2dea05d785a88f /win32
parentca4cbe59eda77a3855094c843486759868794e85 (diff)
Auto-generate the release date on version.h from git CommitDate (#6382)
* Auto-generate the release date on version.h from git CommitDate * Generate revision.h on mswin
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
-rwxr-xr-xwin32/ifchange.bat1
2 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 361af556cd..e802b80968 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1244,6 +1244,8 @@ $(RCFILES): $(RBCONFIG) $(srcdir)/revision.h $(srcdir)/win32/resource.rb
-so_name=$(RUBY_SO_NAME) \
. $(icondirs) $(win_srcdir)
+$(srcdir)/revision.h: $(REVISION_H)
+
update-benchmark-driver:
$(GIT) clone https://github.com/benchmark-driver/benchmark-driver $(srcdir)/benchmark/benchmark-driver || \
$(GIT) -C $(srcdir)/benchmark/benchmark-driver pull origin master
diff --git a/win32/ifchange.bat b/win32/ifchange.bat
index c7db628a04..fb9ad27337 100755
--- a/win32/ifchange.bat
+++ b/win32/ifchange.bat
@@ -89,6 +89,7 @@ if exist %dest% (
)
)
for %%I in (%1) do echo %%~I updated
+del /f %dest%
copy %src% %dest% > nul
del %src%