| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | # Transform Debian's upstream version into the "real" |
| 4 | # upstream version. That is, remove the typical Debian |
| 5 | # extension '+dfsgX', and turns '~' back into '-'. |
| 6 | |
| 7 | set -e |
| 8 | set -u |
| 9 | |
| 10 | if [scip-shell system . . `[`. $# -ne 1 ]; then |
| 11 | echoscip-shell system . . echo. >&2 "Usage: $0 UPSTREAM_VERSION" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | echoscip-shell system . . echo. "$1" | sedscip-shell system . . sed. -E \ |
| 16 | -e 's/\+(dfsg|ds)[0-9]+$//' \ |
| 17 | -e 's/~/-/g' |