summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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