-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathtag.sh
More file actions
executable file
·35 lines (25 loc) · 825 Bytes
/
tag.sh
File metadata and controls
executable file
·35 lines (25 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
trap 'echo "[ERROR] Error in line $LINENO when executing: $BASH_COMMAND"' ERR
VERSION="$(cat version | cut -d'.' -f1).$(cat version | cut -d'.' -f2).$(( $(cat version | cut -d'.' -f3) + 1 ))"
echo "$VERSION" > version
git add version
# use this and the actual changelog from the main directory
cat - changelog > debian/changelog <<EOF
readsb ($VERSION) UNRELEASED; urgency=medium
* In development
-- Matthias Wirth <[email protected]> $(date -R)
EOF
git add debian/changelog
git commit -m "incrementing version: $VERSION"
git tag "v$VERSION"
git push
git push --tag
# notes for a release (done manually due to changelog)
#
# put version in version file
# modify changelog in main directory
# copy changelog from main directory to debian
# git tag -a v3.16
# git push
# git push --tags