From cf0a9313042f7dfbaef2ebdce9e23eec33e48718 Mon Sep 17 00:00:00 2001 From: ok2cqr Date: Sat, 21 Apr 2018 07:09:46 +0200 Subject: [PATCH] added function to build beta versions --- tools/new_version | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/new_version b/tools/new_version index d6e0d50..4c743cf 100755 --- a/tools/new_version +++ b/tools/new_version @@ -1,10 +1,12 @@ #!/bin/bash - -VERSION=`cat ../src/uVersion.pas | grep cVERSION` -VERSION="$(echo -e "${VERSION}" | sed -e 's/^[[:space:]]*//')" -VERSION="${VERSION:15:5}" -# cqrlog version +if [ $1 = "beta" ]; then + VERSION=`date '+%Y%m%d'` +else + VERSION=`cat ../src/uVersion.pas | grep cVERSION` + VERSION="$(echo -e "${VERSION}" | sed -e 's/^[[:space:]]*//')" + VERSION="${VERSION:15:5}" +fi mkdir ~/tmp/cqrlog_build_$VERSION -p FINAL=~/tmp/cqrlog_build_$VERSION #whre would you like to store final build files