diff options
author | wsnipex <wsnipex@a1.net> | 2021-03-05 07:42:44 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2021-03-05 07:42:44 +0100 |
commit | bbd23c5c14e2eb2a638fbde1ce214c70bf9aab25 (patch) | |
tree | 3428fad17638f6ab39eaacbd6d8231426f2b0901 /tools/Linux | |
parent | a4b4ce0a3be442012ed5e4618e0363138ae82173 (diff) |
[ubuntu PPA]: update packaging script
Diffstat (limited to 'tools/Linux')
-rwxr-xr-x | tools/Linux/packaging/package-kodi-launchpad.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/Linux/packaging/package-kodi-launchpad.sh b/tools/Linux/packaging/package-kodi-launchpad.sh index 46586c83c6..df816e1084 100755 --- a/tools/Linux/packaging/package-kodi-launchpad.sh +++ b/tools/Linux/packaging/package-kodi-launchpad.sh @@ -1,15 +1,20 @@ -#/bin/bash +#!/bin/bash -releaseversion=${VERSION:-"19.0"} +releaseversion=${VERSION:-"AUTO"} epoch=${EPOCH:-"2"} gitrev=${GITREV:-"$(git log -1 --pretty=format:"%h")"} tag=${TAG:-${gitrev}} tagrev=${tagrev:-"0"} -dists=${DISTS:-"groovy focal bionic"} -#debuildopts="--no-lintian -d" +dists=${DISTS:-"hirsute groovy focal bionic"} gpgkey=${GPG_KEY:-"jenkins (jenkins build bot) <jenkins@kodi.tv>"} ppa=${PPA:-"nightly"} -debianrepo="${DEBIAN:-"https://github.com/wsnipex/xbmc-packaging"}" +debianrepo="${DEBIAN:-"https://github.com/xbmc/xbmc-packaging"}" + +if [ "$releaseversion" = "AUTO" ]; then + majorversion="$(awk '/VERSION_MAJOR/ {print $2}' version.txt)" + minorversion="$(awk '/VERSION_MINOR/ {print $2}' version.txt)" + releaseversion="${majorversion}.${minorversion}" +fi version="${releaseversion}+git$(date '+%Y%m%d.%H%M')-${tag}" debversion="${epoch}:${version}" |