Skip to content

Commit

Permalink
Release v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
o01eg committed Feb 7, 2025
1 parent c794ff6 commit 6806642
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .ci/base-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ progress()
done
}

BUILD_REV=$(echo "$2" | sed -s 's/^ppa-\([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.[0-9a-f]\{7\}\).*/\1/')
BUILD_DATE=$(echo "$2" | sed -s 's/^ppa-\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\)\.[0-9a-f]\{7\}.*/\1\2\3/')
BUILD_PPA=$(echo "$2" | sed -s 's/^ppa-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.[0-9a-f]\{7\}_\([0-9]\+\).*/\1/')

DIST=$1
DISTNAME=../freeorion_0.5.999+1SNAPSHOT${BUILD_DATE}ppa${BUILD_PPA}~${DIST}
DISTNAME=../freeorion_0.5.1ppa${BUILD_PPA}~${DIST}

2 changes: 1 addition & 1 deletion .ci/dput.cf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[freeorion-ppa-sftp]
fqdn = ppa.launchpad.net
method = sftp
incoming = ~o01eg/freeorion/
incoming = ~o01eg/freeorion-stable/
login = o01eg

5 changes: 2 additions & 3 deletions .ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

source .ci/base-script.sh

echo "REV=${BUILD_REV} DATE=${BUILD_DATE} PPA=${BUILD_PPA}"
sed -i "s/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.[0-9a-f]\{7\}\]/${BUILD_REV}\]/" util/Version.cpp || end_with_error "Cann't set version"
echo "PPA=${BUILD_PPA}"

head -n 1 debian/changelog

echo "Building package ${DISTNAME}..."
sed -i "1,+1{s/bionic\|disco\|eoan\|focal\|groovy\|hirsute\|impish\|jammy\|kinetic/${DIST}/g}" debian/changelog || end_with_error "Cann't set distribution"
sed -i "1,+1{s/1SNAPSHOT[0-9]\{8\}ppa[0-9]\+~/1SNAPSHOT${BUILD_DATE}ppa${BUILD_PPA}~/g}" debian/changelog || end_with_error "Cann't set date"
sed -i "1,+1{s/ppa[0-9]\+~/ppa${BUILD_PPA}~/g}" debian/changelog || end_with_error "Cann't set date"

head -n 1 debian/changelog

Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
freeorion (0.5.1ppa1~focal) focal; urgency=medium

* Release v0.5.1.

-- FreeOrion Bot <[email protected]> Fri, 07 Feb 2025 22:57:59 +0400

freeorion (0.5.999+1SNAPSHOT20220327ppa2~focal) focal; urgency=medium

* Fix godot installation.
Expand Down

0 comments on commit 6806642

Please sign in to comment.