summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nicksnyder/go-i18n/goi18n/gendoc.sh
blob: f30df34e6907c54f852432a650ffdd3db3036172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
go install
echo "// The goi18n command formats and merges translation files." > doc.go
echo "//" >> doc.go
echo "//     go get -u github.com/nicksnyder/go-i18n/goi18n" >> doc.go
echo "//     goi18n -help" >> doc.go
echo "//" >> doc.go
echo "// Help documentation:" >> doc.go
echo "//" >> doc.go
goi18n | sed -e 's/^/\/\/     /' >> doc.go
goi18n merge -help | sed -e 's/^/\/\/     /' >> doc.go
goi18n constants -help | sed -e 's/^/\/\/     /' >> doc.go
echo "package main" >> doc.go