Prevent settings from being reset by manually incrementing the version

This is required when you don't have an Subversion client installed
This commit is contained in:
wiidev 2019-11-11 17:09:39 +00:00
parent 53a5ffa5de
commit 618c05e136
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
rev_new_raw=$(svnversion -n . 2>/dev/null | tr '\n' ' ' | tr -d '\r')
[ -n "$rev_new_raw" ] || rev_new_raw=$(SubWCRev . 2>/dev/null | tr '\n' ' ' | tr -d '\r')
[ -z "$rev_new_raw" ] && rev_new_raw=$(cat version.txt)
rev_new_raw=$(echo $rev_new_raw | sed 's/[^0-9]*\([0-9]*\)\(.*\)/\1 \2/')
rev_new=0

1
version.txt Normal file
View File

@ -0,0 +1 @@
1272