Found the following way: # Tools/scripts/bump-revision.sh multimedia/x264 ERROR: multimedia/x264 PORTREVISION value is not a number, unable to solve! Looking at multimedia/x264/Makefile PORTREVISION?= 5 # 0 in libx264 it appears the problem is that there's "only" a space between the number and the comment separator ('#'), where if it were a tab it'd just work. Now we can update the port, and I plan on doing that, but it's probably just a question of tweaking a regular expression in bump-revision.sh ?
Yeah, I suspect that line 63 of bump-revision.sh case `echo "$revision_str" | awk -F "\t+" '{ print $2 }'` in could just as easily be case `echo "$revision_str" | awk '{ print $2 }'` in I don't suspect there's much value in caring what sort of whitespace it is.
over to maintainer
^Triage: is this aging PR still relevant?
Yes, this still occurs (though not with this specific port) and is still relevant if one wants to use this script across a ports tree.