Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2015 03:33:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204772] Added GH_PROJECTS that allows to add many GitHub projects in a more succinct form
Message-ID:  <bug-204772-13-mF54abfJVu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204772-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204772-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204772

Jan Beich <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jbeich@FreeBSD.org

--- Comment #2 from Jan Beich <jbeich@FreeBSD.org> ---
Comment on attachment 163461
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D163461
patch

>+# GH_PROJECTS   - column-separated account, project, tagname and id

s/column/colon/ and plural names may attract typos. How about the following?

  # GH_TUPLE      - above shortened to account:project:tagname[:group]

>+.  if defined(GH_PROJECTS)
>+GH_ACCOUNT+=3D	${GH_PROJECTS:@ENTRY@${ENTRY:C,^([^:]*):([^:]*):([^:]*)((:=
[^:]*)?),\1\4,}@}
>+GH_PROJECT+=3D	${GH_PROJECTS:@ENTRY@${ENTRY:C,^([^:]*):([^:]*):([^:]*)((:=
[^:]*)?),\2\4,}@}
>+GH_TAGNAME+=3D	${GH_PROJECTS:@ENTRY@${ENTRY:C,^([^:]*):([^:]*):([^:]*)((:=
[^:]*)?),\3\4,}@}
>+.  endif

:@ loops are neither supported by fmake (on 9.x systems) nor required here.

  GH_ACCOUNT+=3D    ${GH_PROJECTS:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\1\=
4@}
  GH_PROJECT+=3D    ${GH_PROJECTS:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\2\=
4@}
  GH_TAGNAME+=3D    ${GH_PROJECTS:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\3\=
4@}

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204772-13-mF54abfJVu>