[137739] branches/gsoc15-portfile/github2port/github2port

chunyang at macports.org chunyang at macports.org
Thu Jun 18 04:31:05 PDT 2015


Revision: 137739
          https://trac.macports.org/changeset/137739
Author:   chunyang at macports.org
Date:     2015-06-18 04:31:05 -0700 (Thu, 18 Jun 2015)
Log Message:
-----------
github2port: Use env variable EMAIL to initialize maintainers

Modified Paths:
--------------
    branches/gsoc15-portfile/github2port/github2port

Modified: branches/gsoc15-portfile/github2port/github2port
===================================================================
--- branches/gsoc15-portfile/github2port/github2port	2015-06-18 08:43:41 UTC (rev 137738)
+++ branches/gsoc15-portfile/github2port/github2port	2015-06-18 11:31:05 UTC (rev 137739)
@@ -76,8 +76,6 @@
     set tmp [exec jq $query $json]
     set tmp [string range $tmp 1 [expr [string length $tmp] - 2]]
 
-    puts $tmp
-
     if {[expr {[string length $tmp] > 0}]} {
         return $tmp
     } else {
@@ -108,9 +106,14 @@
 puts "categories          replaceme"
 puts "platforms           darwin"
 
-# TODO: 5. (optional) Support environment variable like MaintainerHandle, use USER as fallback
-puts "maintainers         replaceme"
+set maintainers "replaceme"
 
+if {[info exist env(EMAIL)] && ![string equal $env(EMAIL) ""]} {
+    set maintainers $env(EMAIL)
+}
+
+puts "maintainers         $maintainers"
+
 if {![string equal $homepage ""]} {
     puts "homepage            $homepage"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150618/a2366887/attachment.html>


More information about the macports-changes mailing list