Bug 211243

Summary: Tools/scripts/bump-revision.sh: fixup last updates, and try to be better with slave ports
Product: Ports & Packages Reporter: Mathieu Arnold <mat>
Component: Ports FrameworkAssignee: Bartek Rutkowski <robak>
Status: Closed FIXED    
Severity: Affects Only Me CC: ports-bugs, robak
Priority: --- Keywords: patch
Version: LatestFlags: mat: maintainer-feedback? (robak)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch mat: maintainer-approval? (robak)

Description Mathieu Arnold freebsd_committer freebsd_triage 2016-07-20 13:37:57 UTC
Created attachment 172748 [details]
patch

the case $? needs to have the exit status of the grep, not the awk line, so remove the awk line, it was not really helpful anyway.

Also, with slave ports, most of the time, they don't have (PORT|DIST)VERSION,  try to use CATEGORIES, PKGNAMEPREFIX or PKGNAMESUFFIX.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-08-03 13:28:49 UTC
A commit references this bug:

Author: mat
Date: Wed Aug  3 13:27:47 UTC 2016
New revision: 419519
URL: https://svnweb.freebsd.org/changeset/ports/419519

Log:
  fixup last updates, and try to be better with slave ports.

  the case $? needs to have the exit status of the grep, not the awk line,
  so remove the awk line, it was not really helpful anyway.

  Also, with slave ports, most of the time, they don't have
  (PORT|DIST)VERSION,  try to use CATEGORIES, PKGNAMEPREFIX or
  PKGNAMESUFFIX.

  PR:		211243
  Submitted by:	mat
  Approved by:	maintainer timeout
  Sponsored by:	Absolight

Changes:
  head/Tools/scripts/bump-revision.sh