summaryrefslogtreecommitdiff
path: root/tools/genversion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/genversion.sh')
-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
23 23
24 if [ -f "$2/version.h" ] 24 if [ -f "$2/version.h" ]
25 then if diff "$2/_version.h" "$2/version.h" > /dev/null 25 then if diff "$2/_version.h" "$2/version.h" > /dev/null
26 then mv "$2/_version.h" "$2/version.h" 26 then rm -f "$2/_version.h"
27 else rm -f "$2/_version.h" 27 else mv "$2/_version.h" "$2/version.h"
28 fi 28 fi
29 else mv "$2/_version.h" "$2/version.h" 29 else mv "$2/_version.h" "$2/version.h"
30 fi 30 fi
@@ -37,8 +37,8 @@ EOF
37 37
38 if [ -f "$2/version.c" ] 38 if [ -f "$2/version.c" ]
39 then if diff "$2/_version.c" "$2/version.c" > /dev/null 39 then if diff "$2/_version.c" "$2/version.c" > /dev/null
40 then mv "$2/_version.c" "$2/version.c" 40 then rm -f "$2/_version.c"
41 else rm -f "$2/_version.c" 41 else mv "$2/_version.c" "$2/version.c"
42 fi 42 fi
43 else mv "$2/_version.c" "$2/version.c" 43 else mv "$2/_version.c" "$2/version.c"
44 fi 44 fi