mirror of https://github.com/procxx/kepka.git
version handling improved
This commit is contained in:
parent
75c4586b07
commit
0443dcf84a
|
@ -1,11 +1,6 @@
|
||||||
@echo OFF
|
@echo OFF
|
||||||
|
|
||||||
set "AppVersionStrMajor=0.9"
|
FOR /F "tokens=1,2* delims= " %i in (Version) do set "%i=%j"
|
||||||
set "AppVersion=9000"
|
|
||||||
set "AppVersionStrSmall=0.9"
|
|
||||||
set "AppVersionStr=0.9.0"
|
|
||||||
set "AppVersionStrFull=0.9.0.0"
|
|
||||||
set "DevChannel=0"
|
|
||||||
|
|
||||||
if %DevChannel% neq 0 goto preparedev
|
if %DevChannel% neq 0 goto preparedev
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
DevPostfix='.dev'
|
DevPostfix='.dev'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
DevPostfix='.dev'
|
DevPostfix='.dev'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
DevPostfix='.dev'
|
DevPostfix='.dev'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
DevParam=''
|
DevParam=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
DevParam=''
|
DevParam=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
AppVersionStrMajor=`./Version.sh | awk -F " " '{print $1}'`
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
AppVersion=`./Version.sh | awk -F " " '{print $2}'`
|
set $line
|
||||||
AppVersionStr=`./Version.sh | awk -F " " '{print $3}'`
|
eval $1="$2"
|
||||||
DevChannel=`./Version.sh | awk -F " " '{print $4}'`
|
done < Version
|
||||||
|
|
||||||
DevPostfix=''
|
DevPostfix=''
|
||||||
DevParam=''
|
DevParam=''
|
||||||
if [ "$DevChannel" != "0" ]; then
|
if [ "$DevChannel" != "0" ]; then
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
AppVersion 9000
|
||||||
|
AppVersionStrMajor 0.9
|
||||||
|
AppVersionStrSmall 0.9
|
||||||
|
AppVersionStr 0.9.0
|
||||||
|
AppVersionStrFull 0.9.0.0
|
||||||
|
DevChannel 0
|
|
@ -1,2 +0,0 @@
|
||||||
echo 0.9 9000 0.9.0 0
|
|
||||||
# AppVersionStrMajor AppVersion AppVersionStr DevChannel
|
|
Loading…
Reference in New Issue