aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorWalter van Niftrik2009-03-28 23:39:59 +0000
committerWalter van Niftrik2009-03-28 23:39:59 +0000
commit1b356fe5435374e85d5b782252dea293b40667d0 (patch)
tree5dd6c1d1226539f0e515b37ed370dd14c0a7e44b /Makefile.common
parenta329b64eccfafdddec562e5618e6fade971402a4 (diff)
downloadscummvm-rg350-1b356fe5435374e85d5b782252dea293b40667d0.tar.gz
scummvm-rg350-1b356fe5435374e85d5b782252dea293b40667d0.tar.bz2
scummvm-rg350-1b356fe5435374e85d5b782252dea293b40667d0.zip
Fix bug #2691034: AMIGAOS: Makefile.common broken.
svn-id: r39729
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index 1d19f32a62..50aa72eb6c 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -114,7 +114,8 @@ endif
# Get the current version information
######################################################################
-VERSION = $(shell grep SCUMMVM_VERSION "${srcdir}/base/internal_version.h" | cut -d\" -f2)
+# AmigaOS4's grep has a problem with "./" in pathnames, so use cat.
+VERSION = $(shell cat "${srcdir}/base/internal_version.h" | grep SCUMMVM_VERSION | cut -d\" -f2)
VER_MAJOR = $(shell echo $(VERSION) | cut -d. -f 1)
VER_MINOR = $(shell echo $(VERSION) | cut -d. -f 2)
VER_PATCH = $(shell echo $(VERSION) | cut -d. -f 3 | cut -c1)