forked from wlbr/feiertage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Refomationstag 2017 as a public holiday in all states. It is a …
…one time public holiday in 2017 in those states, that usually do not include the Refomationstag. Readon is 500 years of Refomation.
- Loading branch information
Showing
4 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# unifying the coding style for different editors and IDEs => editorconfig.org | ||
|
||
; indicate this is the root of the project | ||
root = true | ||
|
||
########################################################### | ||
; common | ||
########################################################### | ||
|
||
[*] | ||
charset = utf-8 | ||
|
||
end_of_line = LF | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
indent_style = space | ||
indent_size = 2 | ||
|
||
########################################################### | ||
; make | ||
########################################################### | ||
|
||
[{Makefile, makefile, GNUmakefile}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
########################################################### | ||
; markdown | ||
########################################################### | ||
|
||
[*.md *.mdown] | ||
#trim_trailing_whitespace = false | ||
|
||
########################################################### | ||
; golang | ||
########################################################### | ||
|
||
[*.go] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
|
||
all: clean test build buildcmd | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f feiertage | ||
clean: | ||
rm -f feiertage | ||
rm -rf bin/ | ||
|
||
run: | ||
go run cmd/feiertage/command.go -region baden-württemberg 2016 | ||
|
||
test: | ||
run: | ||
go run cmd/feiertage/feiertage.go -region baden-württemberg 2016 | ||
|
||
debug: | ||
dlv debug cmd/feiertage/feiertage.go -- -region baden-württemberg 2016 | ||
|
||
|
||
test: | ||
go test | ||
|
||
build: feiertage.go region.go | ||
go build ./... | ||
|
||
buildcmd: feiertage.go region.go cmd/feiertage/feiertage.go | ||
mkdir -p bin | ||
GOOS=linux GOARCH=amd64 go build -o bin/feiertage_linux_x86_64 cmd/feiertage/feiertage.go | ||
GOOS=darwin GOARCH=amd64 go build -o bin/feiertage_osx_x86_64 cmd/feiertage/feiertage.go | ||
GOOS=windows GOARCH=386 go build -o bin/feiertage_win32 cmd/feiertage/feiertage.go | ||
GOOS=windows GOARCH=amd64 go build -o bin/feiertage_win64 cmd/feiertage/feiertage.go | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters