Index: Tools/scripts/bump-revision.sh =================================================================== --- Tools/scripts/bump-revision.sh +++ Tools/scripts/bump-revision.sh @@ -81,8 +81,9 @@ rm -f $tempfile && awk '/^(PORT|DIST)VERSION\??=\t/{ print; print "PORTREVISION=\t1"; next } { print }' "$1/Makefile" > $tempfile \ && cat $tempfile > "$1/Makefile" # If there is not PORTREVISION line, maybe it is a slave port, try - # to add it before a CATEGORIES, PKGNAMESUFFIX or PKGNAMEPREFIX line: - for line in CATEGORIES PKGNAMEPREFIX PKGNAMESUFFIX; do + # to add it before a PORTEPOCH, CATEGORIES, PKGNAMESUFFIX or + # PKGNAMEPREFIX line: + for line in PORTEPOCH CATEGORIES PKGNAMEPREFIX PKGNAMESUFFIX; do if ! grep -q "^PORTREVISION?\?=" $1/Makefile; then rm -f $tempfile && awk '/^'${line}'\??=\t/{ print "PORTREVISION=\t1"; print; next } { print }' "$1/Makefile" > $tempfile \ && cat $tempfile > "$1/Makefile"