AmigaOS4: Adapt configure to latest SDK. Restore grep workaround.

This reverts part of 54ddd000dc to restore
a workaround for breakage in AmigaOS4 grep.
This commit is contained in:
D G Turner 2012-03-04 01:26:57 +00:00
parent d41d7e5f36
commit 1a2d707738

View File

@ -153,7 +153,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 piped into grep.
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)