aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Comstedt2010-03-21 10:34:10 +0000
committerMarcus Comstedt2010-03-21 10:34:10 +0000
commit487eebf9cf3b210322d8982c07fc65538a45bd23 (patch)
treea8b99ee1d83edbe870032a7dfd31f31be5f7b6e5
parent338532ec3c1eff284f5b8876b1058531b2af46c5 (diff)
downloadscummvm-rg350-487eebf9cf3b210322d8982c07fc65538a45bd23.tar.gz
scummvm-rg350-487eebf9cf3b210322d8982c07fc65538a45bd23.tar.bz2
scummvm-rg350-487eebf9cf3b210322d8982c07fc65538a45bd23.zip
Autodetect long V numbers and shorten them.
svn-id: r48351
-rw-r--r--backends/platform/dc/dreamcast.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/dc/dreamcast.mk b/backends/platform/dc/dreamcast.mk
index cd0d4748bd..395b26fb1f 100644
--- a/backends/platform/dc/dreamcast.mk
+++ b/backends/platform/dc/dreamcast.mk
@@ -30,5 +30,7 @@ ip.txt : $(srcdir)/backends/platform/dc/ip.txt.in
if [ x"$(VER_EXTRA)" = xsvn ]; then \
if [ -z "$(VER_SVNREV)" ]; then ver="SVN"; else ver="r$(VER_SVNREV)"; fi; \
else ver="V$(VERSION)"; fi; \
+ if expr "$ver" : V...... >/dev/null; then \
+ ver="V$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)"; fi; \
sed -e 's/[@]VERSION[@]/'"$$ver"/ -e 's/[@]DATE[@]/$(shell date '+%Y%m%d')/' < $< > $@