File: new-upstream-version

package info (click to toggle)
publicsuffix 20190415.1030-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 568 kB
  • sloc: python: 263; sh: 49; makefile: 36; perl: 33
file content (22 lines) | stat: -rwxr-xr-x 872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -ex

git remote update upstream
git diff upstream..upstream/master
read -p "changes ok to continue? [y/N] " REPLY
[ "${REPLY,,}" = "y" ]
date=$(date -u -d $(git log -1 --date=short --pretty=format:%cI upstream/master) +%Y%m%d.%H%M)
git branch -D upstream
git branch upstream upstream/master
git tag "publicsuffix/${date}" upstream/master
git merge -m "merge upstream changes to ${date}" "publicsuffix/${date}"
git log -n30 upstream/master > debian/upstream-changes.txt
git add debian/upstream-changes.txt
dch --distribution unstable -v "${date}-1" 'new upstream version'
git add debian/changelog
git commit -m "new upstream version ${date}"
gbp buildpackage --git-tag --changes-option=-S
debian/rules clean
dupload "../publicsuffix_${date}-1_$(dpkg-architecture -q DEB_HOST_ARCH).changes"
git push salsa --follow-tags debian/master --follow-tags upstream