Skip to content
Snippets Groups Projects
Commit fe6c71f9 authored by Konstantin Pavlov's avatar Konstantin Pavlov Committed by Carola
Browse files

buildanddeploy: Simplify version retrieval.


Signed-off-by: default avatarCarola Nitz <nitz.carola@googlemail.com>
parent fb15c0e6
No related branches found
Tags 3.0.2
No related merge requests found
......@@ -124,6 +124,7 @@ buildMobileVLCKit()
getVLCHashes()
{
VLCKIT_HASH=$(git rev-parse --short HEAD)
VERSION=$(git describe --tags HEAD)
spushd "libvlc/vlc"
VLC_HASH=$(git rev-parse --short HEAD)
spopd #libvlc/vlc
......@@ -256,16 +257,6 @@ uploadPackage()
done
}
getVersion()
{
spushd "Packaging/podspecs"
# Basing on the version of the MobileVLCKit podspec to retreive old version
local oldVersion=$(grep s.version $MOBILE_PODSPEC | cut -d "'" -f 2)
VERSION=$(echo $oldVersion | awk -F$VERSION_DELIMITER -v OFS=$VERSION_DELIMITER 'NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}')
spopd #Packaging/podspecs
}
setCurrentPodspec()
{
# Addded extra precision of target to protect against future targets
......@@ -314,7 +305,6 @@ UPLOAD_URL=${STABLE_UPLOAD_URL}
spushd "$ROOT_DIR"
buildMobileVLCKit
setCurrentPodspec
getVersion
packageBuild $options
renamePackage $options
getSHA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment