From 666f57bed5bc79ece3f883b1910a98de4dc8fa23 Mon Sep 17 00:00:00 2001 From: chai2010 Date: Tue, 5 Jan 2016 16:25:39 +0800 Subject: [PATCH] rename addlinks.go fixlinks.go --- Makefile | 2 +- addlinks.go => fixlinks.go | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) rename addlinks.go => fixlinks.go (93%) diff --git a/Makefile b/Makefile index 49f599c..bc36739 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ review: go run zh2tw.go . .md$$ zh2tw fixlink: - go run addlinks.go . .md$$ + go run fixlinks.go . .md$$ cover: composite cover_patch.png cover_bgd.png cover.jpg diff --git a/addlinks.go b/fixlinks.go similarity index 93% rename from addlinks.go rename to fixlinks.go index 36317c0..24aa701 100644 --- a/addlinks.go +++ b/fixlinks.go @@ -8,11 +8,11 @@ // 给特殊模式标定的单词增加链接. // // Example: -// addlinks -// addlinks dir "\.go$" +// fixlinks +// fixlinks dir "\.go$" // // Help: -// addlinks -h +// fixlinks -h // package main @@ -29,12 +29,12 @@ import ( const MaxFileSize = 8 << 20 // 8MB const usage = ` -Usage: addlinks dir [nameFilter] - addlinks -h +Usage: fixlinks dir [nameFilter] + fixlinks -h Example: - addlinks - addlinks dir "\.go$" + fixlinks + fixlinks dir "\.go$" Report bugs to . ` @@ -133,13 +133,17 @@ var _RegexpLinksTable = func() map[*regexp.Regexp]string { var _LinkTable = map[string]string{ // 人名 + "Alan Donovan": "https://github.com/adonovan", + "Brian Kernighan": "http://www.cs.princeton.edu/~bwk/", "Alan A. A. Donovan": "https://github.com/adonovan", "Brian W. Kernighan": "http://www.cs.princeton.edu/~bwk/", "Robert Griesemer": "http://research.google.com/pubs/author96.html", "Rob Pike": "http://genius.cat-v.org/rob-pike/", "Ken Thompson": "http://genius.cat-v.org/ken-thompson/", + "Russ Cox": "http://research.swtch.com/", "Niklaus Wirth": "https://en.wikipedia.org/wiki/Niklaus_Wirth", "Tony Hoare": "https://en.wikipedia.org/wiki/Tony_Hoare", + "Fred Brooks": "http://www.cs.unc.edu/~brooks/", // 图书 "The C Programming Language": "http://s3-us-west-2.amazonaws.com/belllabs-microsite-dritchie/cbook/index.html",