Browse Source

authors: Retire unused NICKS file

Jakob Borg 7 years ago
parent
commit
7d0723da68
4 changed files with 10 additions and 191 deletions
  1. 0 1
      .mailmap
  2. 3 1
      AUTHORS
  3. 0 153
      NICKS
  4. 7 36
      script/authors.go

+ 0 - 1
.mailmap

@@ -1 +0,0 @@
-NICKS

+ 3 - 1
AUTHORS

@@ -3,7 +3,9 @@
 #
 #    Name Name Name (nickname) <[email protected]> <[email protected]>
 #
-# The NICKS list is auto generated from this file.
+# After changing this list, run "go run script/authors.go" to sort and update
+# the GUI HTML.
+#
 
 Aaron Bieber (qbit) <[email protected]>
 Adam Piggott (ProactiveServices) <[email protected]> <[email protected]> <[email protected]>

+ 0 - 153
NICKS

@@ -1,153 +0,0 @@
-# This file maps email addresses used in commits to nicks used the changelog.
-# It is auto generated from the AUTHORS file by script/authors.go.
-
-0x010C <[email protected]>
-0x010C <[email protected]>
-acogdev <[email protected]>
-adelq <[email protected]>
-adelq <[email protected]>
-alessandro.g89 <[email protected]>
-alex2108 <[email protected]>
-andersonvom <[email protected]>
-andrew-d <[email protected]>
-asdil12 <[email protected]>
-AudriusButkevicius <[email protected]>
-aviau <[email protected]>
-aviau <[email protected]>
-bencurthoys <[email protected]>
-benshep <[email protected]>
-bigbear2nd <[email protected]>
-brbecker <[email protected]>
-brendanlong <[email protected]>
-brgmnn <[email protected]>
-brgmnn <[email protected]>
-bsidhom <[email protected]>
-buinsky <[email protected]>
-burkemw3 <[email protected]>
-burkemw3 <[email protected]>
-calmh <[email protected]>
-calmh <[email protected]>
-canton7 <[email protected]>
-Cathryne <[email protected]>
-Cathryne <[email protected]>
-cdata <[email protected]>
-cdhowie <[email protected]>
-ceh <[email protected]>
-cqcallaw <[email protected]>
-damajor <[email protected]>
-dinosore <[email protected]>
-dsaveliev <[email protected]>
-dtchanpura <[email protected]>
-dtchanpura <[email protected]>
-dva <[email protected]>
-dzarda <[email protected]>
-eipiminus1 <[email protected]>
-eipiminus1 <[email protected]>
-elopio <[email protected]>
-facastagnini <[email protected]>
-filoozoom <[email protected]>
-frioux <[email protected]>
-frioux <[email protected]>
-fti7 <[email protected]>
-gillisig <[email protected]>
-hadogenes <[email protected]>
-imsodin <[email protected]>
-ironmig <[email protected]>
-jarlebring <[email protected]>
-jayachithra <[email protected]>
-jedie <[email protected]>
-jedie <[email protected]>
-jgke <[email protected]>
-jmdaweb <[email protected]>
-jmdaweb <[email protected]>
-jpjp <[email protected]>
-jpjp <[email protected]>
-kamadak <[email protected]>
-KayoticSully <[email protected]>
-kc1212 <[email protected]>
-kc1212 <[email protected]>
-kilburn <[email protected]>
-kluppy <[email protected]>
-kozec <[email protected]>
-kralo <[email protected]>
-kralo <[email protected]>
-krozycki <[email protected]>
-Kudalufi <[email protected]>
-Kudalufi <[email protected]>
-kwhite17 <[email protected]>
-letiemble <[email protected]>
-letiemble <[email protected]>
-liusy182 <[email protected]>
-liusy182 <[email protected]>
-lkwg82 <[email protected]>
-LordLandon <[email protected]>
-majedev <[email protected]>
-marcindziadus <[email protected]>
-marclaporte <[email protected]>
-marclaporte <[email protected]>
-mateon1 <[email protected]>
-mogwa1 <[email protected]>
-moshen <[email protected]>
-Moter8 <[email protected]>
-mpx <[email protected]>
-mvdan <[email protected]>
-nelsonkhan <[email protected]>
-Niller303 <[email protected]>
-Niller303 <[email protected]>
-norgeous <[email protected]>
-norgeous <[email protected]>
-norgeous <[email protected]>
-nov1n <[email protected]>
-nrm21 <[email protected]>
-Nutomic <[email protected]>
-pascalj <[email protected]>
-pascalj <[email protected]>
-peterhoeg <[email protected]>
-philips <[email protected]>
-piobpl <[email protected]>
-plouj <[email protected]>
-pluby <[email protected]>
-ProactiveServices <[email protected]>
-ProactiveServices <[email protected]>
-ProactiveServices <[email protected]>
-pyfisch <[email protected]>
-qbit <[email protected]>
-qepasa <[email protected]>
-ralder <[email protected]>
-rasa <[email protected]>
-Rewt0r <[email protected]>
-Rewt0r <[email protected]>
-rumpelsepp <[email protected]>
-rumpelsepp <[email protected]>
-sacheendra <[email protected]>
-scienmind <[email protected]>
-sciurius <[email protected]>
-seehuhn <[email protected]>
-Smiley73 <[email protected]>
-snnd <[email protected]>
-snugghash <[email protected]>
-snugghash <[email protected]>
-Stefan-Code <[email protected]>
-Stefan-Code <[email protected]>
-timabell <[email protected]>
-timhowes <[email protected]>
-tnn2 <[email protected]>
-tobiastom <[email protected]>
-tojrobinson <[email protected]>
-tpng <[email protected]>
-tylerbrazier <[email protected]>
-Unrud <[email protected]>
-Unrud <[email protected]>
-uok <[email protected]>
-uok <[email protected]>
-veeti <[email protected]>
-Vilbrekin <[email protected]>
-wkennington <[email protected]>
-WSGCSysadmin <[email protected]>
-wweich <[email protected]>
-wweich <[email protected]>
-wweich <[email protected]>
-xduugu <[email protected]>
-zaynetro <[email protected]>
-Zillode <[email protected]>
-zukoo <[email protected]>

+ 7 - 36
script/authors.go

@@ -36,11 +36,9 @@ const authorsHeader = `# This is the official list of Syncthing authors for copy
 #
 #    Name Name Name (nickname) <[email protected]> <[email protected]>
 #
-# The NICKS list is auto generated from this file.
-`
-
-const nicksHeader = `# This file maps email addresses used in commits to nicks used the changelog.
-# It is auto generated from the AUTHORS file by script/authors.go.
+# After changing this list, run "go run script/authors.go" to sort and update
+# the GUI HTML.
+#
 `
 
 type author struct {
@@ -53,6 +51,9 @@ type author struct {
 
 func main() {
 	authors := getAuthors()
+
+	// Write author names in GUI about modal
+
 	getContributions(authors)
 	sort.Sort(byContributions(authors))
 
@@ -78,6 +79,7 @@ func main() {
 	if err != nil {
 		log.Fatal(err)
 	}
+
 	fmt.Fprintf(out, "%s\n", authorsHeader)
 	for _, author := range authors {
 		fmt.Fprintf(out, "%s", author.name)
@@ -90,25 +92,6 @@ func main() {
 		fmt.Fprintf(out, "\n")
 	}
 	out.Close()
-
-	// Write NICKS file
-
-	sort.Sort(byNick(authors))
-
-	out, err = os.Create("NICKS")
-	if err != nil {
-		log.Fatal(err)
-	}
-	fmt.Fprintf(out, "%s\n", nicksHeader)
-	for _, author := range authors {
-		if author.nickname == "" {
-			continue
-		}
-		for _, email := range author.emails {
-			fmt.Fprintf(out, "%s <%s>\n", author.nickname, email)
-		}
-	}
-	out.Close()
 }
 
 func getAuthors() []author {
@@ -211,15 +194,3 @@ func (l byName) Less(a, b int) bool {
 }
 
 func (l byName) Swap(a, b int) { l[a], l[b] = l[b], l[a] }
-
-type byNick []author
-
-func (l byNick) Len() int { return len(l) }
-
-func (l byNick) Less(a, b int) bool {
-	anick := strings.ToLower(l[a].nickname)
-	bnick := strings.ToLower(l[b].nickname)
-	return anick < bnick
-}
-
-func (l byNick) Swap(a, b int) { l[a], l[b] = l[b], l[a] }