Update gen.go to use creation year

This commit is contained in:
Hajime Hoshi 2016-02-05 23:31:35 +09:00
parent bb8a94ad09
commit 8d4ca8f8a9
8 changed files with 5 additions and 51 deletions

View File

@ -27,7 +27,6 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
"time"
) )
var license = "" var license = ""
@ -38,20 +37,16 @@ func init() {
panic(err) panic(err)
} }
license = strings.TrimSpace(string(b)) license = strings.TrimSpace(string(b))
year, err := strconv.Atoi(regexp.MustCompile(`^Copyright (\d+)`).FindStringSubmatch(license)[1])
if err != nil {
panic(err)
}
if year != time.Now().Year() {
panic("the license's year is not this year")
}
} }
var copyright = "" var copyright = ""
func init() { func init() {
copyright = fmt.Sprintf("© %d Hajime Hoshi", time.Now().Year()) year, err := strconv.Atoi(regexp.MustCompile(`^Copyright (\d+)`).FindStringSubmatch(license)[1])
if err != nil {
panic(err)
}
copyright = fmt.Sprintf("© %d Hajime Hoshi", year)
} }
var stableVersion = "" var stableVersion = ""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,41 +0,0 @@
# License
## arcadefont.png
```
9031 Font ReadMe
Terms of Use and Disclaimer
All 9031 fonts are free of charge to use for personal or commercial purposes, e.g. printed papers, t-shirts, logos, images for website, merchandise or anything featuring these fonts.
OpenType font files are licensed for your personal desktop use only. No part of these files may be re-distributed, sold, renamed, converted, or made available for download on any web site without permission of author.
Author give no warranty in relation to these fonts, and you use them at your own risk. By using or installing these fonts, you agree to be bound by the terms of this agreement. Author will not be liable for any damage to your system, any loss or corruption of any data or font, or any other loss or damage that you may suffer as a result of downloading or using these fonts, whether it results from Author's negligence or in any other way.
Author
Yuji Adachi, 9031
Website: http://9031.com/
Email: info@9031.com
©1997-2011 9031
```
## ebiten.png
```
http://www.sozai-page.com/02_sozai/b/b04/b04_002/b04_002.html
```
## gophers.jpg
```
http://blog.golang.org/go-programming-language-turns-two
```
## Other image files
```
Creative Commons Attribution 3.0 License
```