Debian Codegraph @

debian/update-major-version

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 set -e
4 upstream=$(dpkg-parsechangelogscip-shell system . . dpkg-parsechangelog. -SVersion | sedscip-shell system . . sed. 's/-[0-9]*$//')
5 upstream_major=$(echoscip-shell system . . echo. $upstream | sedscip-shell system . . sed. 's/\.[^.]*$//')
6
7 old=$1
8
9 if [scip-shell system . . `[`. ! -f debian/libperl$old.symbols ]; then
10 echoscip-shell system . . echo. "Usage: $0 <old-major-version>" 1>&2
11 exit 1
12 fi
13
14 cd debian/
15 rename "s/$old/$upstream_major/" *
16 sedscip-shell system . . sed. -i "s/$old.0/$upstream/g" libperl*.symbols
17 sedscip-shell system . . sed. -i "s/$old/$upstream_major/g" control perl.postinst perl.README.Debian libperl*.symbols t/control.t