diff options
author | Marcus Comstedt | 2010-03-21 10:34:10 +0000 |
---|---|---|
committer | Marcus Comstedt | 2010-03-21 10:34:10 +0000 |
commit | 487eebf9cf3b210322d8982c07fc65538a45bd23 (patch) | |
tree | a8b99ee1d83edbe870032a7dfd31f31be5f7b6e5 | |
parent | 338532ec3c1eff284f5b8876b1058531b2af46c5 (diff) | |
download | scummvm-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.mk | 2 |
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')/' < $< > $@ |