• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki_devel: Commit


Commit MetaInfo

Revisión5302a8d398c00e8d47516b3d789039b0967ab31a (tree)
Tiempo2021-11-24 21:03:18
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

Stop build process when verifying patch fails

Cambiar Resumen

Diferencia incremental

--- a/create_patch.sh
+++ b/create_patch.sh
@@ -47,5 +47,18 @@ popd
4747 set +e
4848 diff -ur pukiwiki-${NEW}_utf8/ _upgrade_pukiwiki-${PREV}_utf8/
4949 diff -ur pukiwiki-${NEW}_eucjp/ _upgrade_pukiwiki-${PREV}_eucjp/
50+
51+ DIFF_U=$(diff -ur pukiwiki-${NEW}_utf8/ _upgrade_pukiwiki-${PREV}_utf8/ | grep -v 'zip differ')
52+ DIFF_E=$(diff -ur pukiwiki-${NEW}_eucjp/ _upgrade_pukiwiki-${PREV}_eucjp/ | grep -v 'zip differ')
5053 set -e
5154
55+if [ -n "$DIFF_U" ]; then
56+ echo "Invalid patch (UTF-8)"
57+ exit 101
58+fi
59+
60+if [ -n "$DIFF_E" ]; then
61+ echo "Invalid patch (EUC-JP)"
62+ exit 102
63+fi
64+
Show on old repository browser