From 8a90413b87744ed871c050273a306fe9d6802a70 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 31 Jan 2021 15:57:02 +0100 Subject: [PATCH] Use version from VERSION file The `VERSION` variable doesn't work with a release tarball, because it requires git to be set correctly. Instead this reads the version from the `VERSION` file. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea23ccd499..6deb1cefe7 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,7 @@ endif @sh -c '. ./packaging/functions.sh; install_data $(CWD) $(DESTDIR)$(gameinstalldir) cnc d2k ra' install-linux-shortcuts: - @sh -c '. ./packaging/functions.sh; install_linux_shortcuts $(CWD) "$(DESTDIR)" "$(gameinstalldir)" "$(bindir)" "$(datadir)" $(VERSION) cnc d2k ra' + @sh -c '. ./packaging/functions.sh; install_linux_shortcuts $(CWD) "$(DESTDIR)" "$(gameinstalldir)" "$(bindir)" "$(datadir)" "$(shell head -n1 VERSION)" cnc d2k ra' install-linux-appdata: @sh -c '. ./packaging/functions.sh; install_linux_appdata $(CWD) "$(DESTDIR)" "$(datadir)" cnc d2k ra'