File: packagename_and_upstream_version.sh

package info (click to toggle)
librun-parts-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 196 kB
  • ctags: 20
  • sloc: perl: 409; makefile: 4; sh: 4
file content (6 lines) | stat: -rwxr-xr-x 163 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/bin/sh

DELIM=${1:-_}

# dpkg-parsechangelog option -S requires dpkg >= 1.17
echo `dh_listpackages`$DELIM`dpkg-parsechangelog -SVersion | sed -e 's/-[^-]*$//'`