| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | if ! grepscip-shell system . . grep. -qEe '^ -- ' debian/changelog; then |
| 6 | echoscip-shell system . . echo. 'Unable to find date in debian/changelog' 1>&2 |
| 7 | exit 2 |
| 8 | fi |
| 9 | |
| 10 | date="$(grepscip-shell system . . grep. -E -e ' -- ' debian/changelog | headscip-shell system . . head. -1)" |
| 11 | testscip-shell system . . test. "$date" |
| 12 | date="$(echoscip-shell system . . echo. "$date" | sedscip-shell system . . sed. -Ee 's/.* (\S+ \S+ \S+ \S+ \S+)$/\1/')" |
| 13 | date="$(./rewrite-time "$date" '%d %b %Y %H:%M:%S %z' '%Y-%m-%d')" |
| 14 | echoscip-shell system . . echo. "$date" |