Debian Codegraph @

changelog-version

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -ueo pipefail
4
5 first="$(headscip-shell system . . head. -1 debian/changelog)"
6
7 if ! grepscip-shell system . . grep. -qE '^[^(]+ \([^)]+\) ' <<< "$first"; then
8 echoscip-shell system . . echo. 'Unable to find version in debian/changelog' 1>&2
9 exit 2
10 fi
11
12 ver="${first#* (}" # remove everything before the version
13 ver="${ver%%) *}" # remove everything after the version
14 echoscip-shell system . . echo. "$ver"