mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix the rules for creating the windows .nsi file
This was one of the reasons why I tagged version 2.9. I wanted to test all the Makefile magic we added to get sane and automated versions on Windows and Linux. And it turned out my sed script failed in rather obvious ways. These changes appear to fix that - but of course you won't see that unless you reset your git repository to the tag and manually apply this patch. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5d9ed3f1b4
commit
29e73be9f2
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -27,7 +27,7 @@ XSLTFILES = xslt/*.xslt
|
|||
|
||||
UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win")
|
||||
VERSION_STRING := $(shell git describe --tags --abbrev=12 || echo "v$(VERSION)")
|
||||
PRODVERSION_STRING := $(shell git describe --tags --abbrev=12 | sed 's/v\([0-9]*\)\.\([0-9]*\)-\([0-9]*\)-.*/\1.\2.\3.0/' || echo "$(VERSION).0.0")
|
||||
PRODVERSION_STRING := $(shell git describe --tags --abbrev=12 | sed 's/v\([0-9]*\)\.\([0-9]*\)-\([0-9]*\)-.*/\1.\2.\3.0/ ; s/v\([0-9]\)\.\([0-9]*\)/\1.\2.0.0/' || echo "$(VERSION).0.0")
|
||||
|
||||
# find libdivecomputer
|
||||
# First deal with the cross compile environment and with Mac.
|
||||
|
@ -219,7 +219,7 @@ install-cross-windows: $(NAME)
|
|||
create-windows-installer: $(NAME) $(NSIFILE) install-cross-windows
|
||||
$(MAKENSIS) $(NSIFILE)
|
||||
|
||||
$(NSIFILE): $(NSIINPUTFILE)
|
||||
$(NSIFILE): $(NSIINPUTFILE) Makefile
|
||||
$(shell cat $(NSIINPUTFILE) | sed -e 's/VERSIONTOKEN/$(VERSION_STRING)/;s/PRODVTOKEN/$(PRODVERSION_STRING)/' > $(NSIFILE))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue