Makefile added.

This commit is contained in:
Andreas Neue 2016-01-20 20:55:30 +01:00
parent 9f5d94b24d
commit 6b0e3a1dbf
3 changed files with 50 additions and 10 deletions

37
Makefile Normal file
View File

@ -0,0 +1,37 @@
GOPATH := ${PWD}:${GOPATH}
export GOPATH
default: build
build: test genversion
go build -v flokatirc
build-win: test genversion
GOOS=windows GOARCH=amd64 go build -v -o ./build/bin/flokatirc.exe flokatirc
genversion:
./genversion.sh
fmt:
go fmt ./...
fix:
go fix ./...
imports:
find . -type f -name "*.go" -exec goimports -w {} \;
doc:
godoc -http=:6060 -index
test:
go test ./...
commit:
git commit -a -F changes.log
rm changes.log
touch changes.log
./genversion.sh
push:
git push

12
genversion.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
VERSIONGO="version/version.go"
echo "package version" >$VERSIONGO
echo "" >>$VERSIONGO
echo "const (" >>$VERSIONGO
echo -n " FlokatiVersion = \"" >>$VERSIONGO
echo -n `git rev-parse --abbrev-ref HEAD` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo -n " FlokatiBuild = \"" >>$VERSIONGO
echo -n `git rev-list HEAD --count` >>$VERSIONGO
echo "\"" >>$VERSIONGO
echo ")" >>$VERSIONGO

View File

@ -1,10 +1 @@
https://robertsspaceindustries.com/comm-link/rss
http://starcitizenbase.de/feed/
https://www.youtube.com/feeds/videos.xml?channel_id=UCVlBNk1uHmMX93SvotZPfbQ
http://imperialnews.network/feed/
http://www.pointofgaming.com/feed/
http://il2sturmovik.com/news/feed/
http://newsfeed.eveonline.com/en-US/44/articles/page/1/20
https://www.shroudoftheavatar.com/?feed=rss2&cat=11
https://www.shroudoftheavatar.com/?feed=rss2&cat=12
http://camelotunchained.com/en/feed/
https://example.com/rss