From 6f6abcf331366472d5ad4e4eee3f565eeaae3a2e Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 22 Aug 2022 09:56:05 +0200 Subject: [PATCH] Example file --- APKBUILD | 5 +++-- Makefile | 2 +- stats.json => example.json | 0 main.go | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename stats.json => example.json (100%) diff --git a/APKBUILD b/APKBUILD index 10c50ec..6a7fcc4 100644 --- a/APKBUILD +++ b/APKBUILD @@ -22,10 +22,11 @@ build() { package() { 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=" -43c0969328e860e0b085243061ed3ad714fb56aacd36c2fa7ea374fe9e7cf256518d9e0e4a0c005a7716817f16ad56333c730526bffd2a4d410ee6730421c706 sheet-parser-0.1.tar.gz +34e0395108bd7ae271791978e402209e68bec4566a1613aed54e52bcbe27024ae610837d2ae67e6cc16e77cac072124d67e673ec38dd7d9ec512ae62cec58a12 sheet-parser-0.1.tar.gz af0b72e986c5c06fd8d05ccc2819e5fe9d80ed58a2e7fec87f7f1648e26698897268edf64659a9bb27654d8edc2051f0e93501686e8083accc50e7b7359e37fd zsh.completion " diff --git a/Makefile b/Makefile index a55e1f4..53cc88c 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ clean: dist: clean 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) gzip sheet-parser-$(VERSION).tar rm -rf sheet-parser-$(VERSION) diff --git a/stats.json b/example.json similarity index 100% rename from stats.json rename to example.json diff --git a/main.go b/main.go index dd027af..cc52eb8 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ var ( ) 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(&skillString, "skill", "", "Skill to parse") flag.StringVar(&statString, "stat", "", "Stat check")