Skip to content

Commit

Permalink
fix: getting version from uVersion.pas, clone using https
Browse files Browse the repository at this point in the history
  • Loading branch information
ok2cqr committed May 29, 2022
1 parent faabf2d commit 67eaf1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/new_version
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

if [ $1 = "beta" ]; then
if [ -v $i] && [ $1 = "beta" ]; then
VERSION=`date '+%Y%m%d'`
else
VERSION=`cat ../src/uVersion.pas | grep cVERSION`
VERSION=`cat ../src/uVersion.pas | grep 'cVersionBase = '`
VERSION="$(echo -e "${VERSION}" | sed -e 's/^[[:space:]]*//')"
VERSION="${VERSION:15:5}"
VERSION="${VERSION:20:5}"
fi
mkdir ~/tmp/cqrlog_build_$VERSION -p
FINAL=~/tmp/cqrlog_build_$VERSION
Expand Down Expand Up @@ -41,7 +41,7 @@ echo cqrlog_"$VERSION"_$ARCH.tar.gz
mkdir $CTMP/cqrlog-$VERSION -p
mkdir $FINAL -p
cd $CTMP
git clone git://github.com/ok2cqr/cqrlog.git cqrlog-$VERSION
git clone https://github.com/ok2cqr/cqrlog.git cqrlog-$VERSION --depth=1

# Raspbian still has old verison of Lazarus and FreePascal
# new properties from Lazarus 1.8 has to be removed
Expand Down

0 comments on commit 67eaf1a

Please sign in to comment.