summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-06-20 23:50:03 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-06-20 23:50:03 +0000
commit75de4a352ecdf1f6e9aa0f544f85248ed494f35c (patch)
treec5ca96cebbbef2794a36cd2f1bb46a614feccc6b
parent298316d19297eea82869b63235b535e5904fc0dd (diff)
downloadrockbox-75de4a352ecdf1f6e9aa0f544f85248ed494f35c.tar.gz
rockbox-75de4a352ecdf1f6e9aa0f544f85248ed494f35c.tar.bz2
rockbox-75de4a352ecdf1f6e9aa0f544f85248ed494f35c.zip
Fix genversion.sh file replacement logic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26999 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/genversion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/genversion.sh b/tools/genversion.sh
index 55abb5de3d..b49d9f30e7 100755
--- a/tools/genversion.sh
+++ b/tools/genversion.sh
@@ -23,8 +23,8 @@ EOF
if [ -f "$2/version.h" ]
then if diff "$2/_version.h" "$2/version.h" > /dev/null
- then mv "$2/_version.h" "$2/version.h"
- else rm -f "$2/_version.h"
+ then rm -f "$2/_version.h"
+ else mv "$2/_version.h" "$2/version.h"
fi
else mv "$2/_version.h" "$2/version.h"
fi
@@ -37,8 +37,8 @@ EOF
if [ -f "$2/version.c" ]
then if diff "$2/_version.c" "$2/version.c" > /dev/null
- then mv "$2/_version.c" "$2/version.c"
- else rm -f "$2/_version.c"
+ then rm -f "$2/_version.c"
+ else mv "$2/_version.c" "$2/version.c"
fi
else mv "$2/_version.c" "$2/version.c"
fi