mirror of
https://github.com/ok2cqr/cqrlog.git
synced 2024-09-21 02:17:19 +00:00
fix: getting version from uVersion.pas, clone using https
This commit is contained in:
parent
faabf2df75
commit
67eaf1afdf
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user