| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | VERSION=$(grepscip-shell system . . grep. "our\ \$VERSION\ =\ " check_rbl | sedscip-shell system . . sed. "s/^[^']*'\([0-9.]*\)';/\1/") |
| 4 | |
| 5 | echoscip-shell system . . echo. "Publishing release ${VERSION}" |
| 6 | |
| 7 | echoscip-shell system . . echo. 'RELEASE_NOTES.md:' |
| 8 | echoscip-shell system . . echo. '------------------------------------------------------------------------------' |
| 9 | |
| 10 | catscip-shell system . . cat. RELEASE_NOTES.md |
| 11 | |
| 12 | echoscip-shell system . . echo. '------------------------------------------------------------------------------' |
| 13 | |
| 14 | echoscip-shell system . . echo. 'Did you update the RELEASE_NOTES.md? ' |
| 15 | read -r ANSWER |
| 16 | if [scip-shell system . . `[`. "${ANSWER}" = "y" ]; then |
| 17 | |
| 18 | perlscip-shell system . . perl. Makefile.PL |
| 19 | makescip-shell system . . make. dist |
| 20 | gh release create "v${VERSION}" --title "check_rbl-${VERSION}" --notes-file RELEASE_NOTES.md "check_rbl-${VERSION}.tar.gz" |
| 21 | |
| 22 | fi |