Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151441116
D4514.id13948.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4514.id13948.diff
View Options
Index: head/CHANGES
===================================================================
--- head/CHANGES
+++ head/CHANGES
@@ -10,6 +10,15 @@
All ports committers are allowed to commit to this file.
+20160301:
+AUTHOR: mat@FreeBSD.org
+
+ Introduce GH_TUPLE.
+
+ GH_TUPLE allows one to put all the GH_{ACCOUNT,PROJECT,TAGNAME} into one
+ variable, in the form of account:project:tagname[:group]. It is helpful when
+ there are many submodules.
+
20160207:
AUTHOR: kwm@FreeBSD.org
Index: head/Mk/bsd.sites.mk
===================================================================
--- head/Mk/bsd.sites.mk
+++ head/Mk/bsd.sites.mk
@@ -517,6 +517,7 @@
# Using the name of a branch here is incorrect. It is
# possible to do GH_TAGNAME= GIT_HASH to do a snapshot.
# default: ${DISTVERSION}
+# GH_TUPLE - above shortened to account:project:tagname[:group]
#
.if defined(USE_GITHUB)
. if defined(GH_TAGNAME) && ${GH_TAGNAME} == master
@@ -524,6 +525,11 @@
Must use a tag or commit hash so the upstream does \
not "reroll" as soon as the branch is updated
. endif
+. if defined(GH_TUPLE)
+GH_ACCOUNT+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\1\4@}
+GH_PROJECT+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\2\4@}
+GH_TAGNAME+= ${GH_TUPLE:C@^([^:]*):([^:]*):([^:]*)((:[^:]*)?)@\3\4@}
+. endif
# We are cheating and using backend URLS for Github here. See ports/194898
# comment #15 for explanation as to why and how to deal with it if it breaks.
MASTER_SITE_GITHUB+= https://codeload.github.com/%SUBDIR%
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 10:34 AM (6 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31152514
Default Alt Text
D4514.id13948.diff (1 KB)
Attached To
Mode
D4514: Add GH_TUPLE
Attached
Detach File
Event Timeline
Log In to Comment