Example file

This commit is contained in:
Nox Sluijtman 2022-08-22 09:56:05 +02:00
parent ca7c587aaa
commit 6f6abcf331
4 changed files with 5 additions and 4 deletions

View file

@ -22,10 +22,11 @@ build() {
package() { package() {
make install PREFIX=/usr DESTDIR="$pkgdir" make install PREFIX=/usr DESTDIR="$pkgdir"
install -D -m 644 zsh.completion "$pkgdir"/usr/share/zsh/site-functions/_$pkgname install -Dm 644 zsh.completion "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
install -Dm 644 example.json "$pkgdir"/etc/sheet-parser/example.json
} }
sha512sums=" sha512sums="
43c0969328e860e0b085243061ed3ad714fb56aacd36c2fa7ea374fe9e7cf256518d9e0e4a0c005a7716817f16ad56333c730526bffd2a4d410ee6730421c706 sheet-parser-0.1.tar.gz 34e0395108bd7ae271791978e402209e68bec4566a1613aed54e52bcbe27024ae610837d2ae67e6cc16e77cac072124d67e673ec38dd7d9ec512ae62cec58a12 sheet-parser-0.1.tar.gz
af0b72e986c5c06fd8d05ccc2819e5fe9d80ed58a2e7fec87f7f1648e26698897268edf64659a9bb27654d8edc2051f0e93501686e8083accc50e7b7359e37fd zsh.completion af0b72e986c5c06fd8d05ccc2819e5fe9d80ed58a2e7fec87f7f1648e26698897268edf64659a9bb27654d8edc2051f0e93501686e8083accc50e7b7359e37fd zsh.completion
" "

View file

@ -15,7 +15,7 @@ clean:
dist: clean dist: clean
mkdir -p sheet-parser-$(VERSION) mkdir -p sheet-parser-$(VERSION)
cp -R $(ZSH_COMPLETION_OUTPUT) LICENSE Makefile README.md sheet-parser.1 $(SRC) sheet-parser-$(VERSION) cp -R example.json $(ZSH_COMPLETION_OUTPUT) LICENSE Makefile README.md sheet-parser.1 $(SRC) sheet-parser-$(VERSION)
tar -cf sheet-parser-$(VERSION).tar sheet-parser-$(VERSION) tar -cf sheet-parser-$(VERSION).tar sheet-parser-$(VERSION)
gzip sheet-parser-$(VERSION).tar gzip sheet-parser-$(VERSION).tar
rm -rf sheet-parser-$(VERSION) rm -rf sheet-parser-$(VERSION)

View file

@ -22,7 +22,7 @@ var (
) )
func parseFlags() { func parseFlags() {
flag.StringVar(&path, "file", "stats.json", "Used to point to character sheet") flag.StringVar(&path, "file", "/etc/sheet-parser/example.json", "Used to point to character sheet")
flag.StringVar(&path, "f", "stats.json", "Used to point to character sheet") flag.StringVar(&path, "f", "stats.json", "Used to point to character sheet")
flag.StringVar(&skillString, "skill", "", "Skill to parse") flag.StringVar(&skillString, "skill", "", "Skill to parse")
flag.StringVar(&statString, "stat", "", "Stat check") flag.StringVar(&statString, "stat", "", "Stat check")