Index: git/gitrepo/gitolite/local/hooks/repo-specific/notify-mailinglist =================================================================== --- git/gitrepo/gitolite/local/hooks/repo-specific/notify-mailinglist (revision 16613) +++ git/gitrepo/gitolite/local/hooks/repo-specific/notify-mailinglist (working copy) @@ -31,7 +31,7 @@ { len=0 echo "$1" | LANG=C.utf-8 fold -w5 | while IFS=$'\n' read -r part; do - if [ -n "$(echo "${part}" | pcregrep "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${part}" | pcre2grep "[\x80-\xFF]")" ]; then encoded="=?utf-8?Q?$(echo "${part}" | mmencode -q)?=" encoded=$(echo "$encoded" | head -n1 | sed "s/ =?=$/?= /") else @@ -48,7 +48,7 @@ rev=$1 pusher_name=$(q_encode "$(getent passwd ${GL_USER} | cut -d: -f 5 | cut -d, -f 1)") - if [ -n "$(echo "${pusher_name}" | pcregrep -n "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${pusher_name}" | pcre2grep -n "[\x80-\xFF]")" ]; then pusher_name=$(q_encode "${pusher_name}") fi pusher_email="${GL_USER}@FreeBSD.org" @@ -56,7 +56,7 @@ from_pusher="${pusher_name} <${pusher_email}>" author_name=$(git show --no-patch --format="%an" ${rev} 2>/dev/null) - if [ -n "$(echo "${author_name}" | pcregrep -n "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${author_name}" | pcre2grep -n "[\x80-\xFF]")" ]; then author_name=$(q_encode "${author_name}") fi author_email=$(git show --no-patch --format="%ae" ${rev} 2>/dev/null) @@ -97,7 +97,7 @@ rev=$1 pusher_name=$(q_encode "$(getent passwd ${GL_USER} | cut -d: -f 5 | cut -d, -f 1)") - if [ -n "$(echo "${pusher_name}" | pcregrep -n "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${pusher_name}" | pcre2grep -n "[\x80-\xFF]")" ]; then pusher_name=$(q_encode "${pusher_name}") fi pusher_email="${GL_USER}@FreeBSD.org" @@ -105,7 +105,7 @@ from_pusher="${pusher_name} <${pusher_email}>" author_name=$(git show --no-patch --format="%an" ${rev} 2>/dev/null) - if [ -n "$(echo "${author_name}" | pcregrep -n "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${author_name}" | pcre2grep -n "[\x80-\xFF]")" ]; then author_name=$(q_encode "${author_name}") fi author_email=$(git show --no-patch --format="%ae" ${rev} 2>/dev/null) @@ -202,7 +202,7 @@ fi pusher_name=$(getent passwd ${GL_USER} | cut -d: -f 5 | cut -d, -f 1) - if [ -n "$(echo "${pusher_name}" | pcregrep -n "[\x80-\xFF]")" ]; then + if [ -n "$(echo "${pusher_name}" | pcre2grep -n "[\x80-\xFF]")" ]; then pusher_name=$(q_encode "${pusher_name}") fi from_pusher="${pusher_name} <${GL_USER}@FreeBSD.org>"