File: sync-build-dep-version.sh

package info (click to toggle)
qalculate-qt 5.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,408 kB
  • sloc: cpp: 32,771; xml: 799; sh: 14; makefile: 6
file content (11 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Sync the libqalculate-dev B-D version with debian/changelog
set -x
package_name=libqalculate-dev
target_version=">= $(dpkg-parsechangelog -S Version | sed 's/-.*/~/')"
sed -i -E "s/${package_name} \(>= ?\S+\)/${package_name} ($target_version)/" debian/control
if [[ ! $? ]]; then
    echo "no match"
else
    dch -a -m "Bump $package_name build-dependency to $target_version"
fi