diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rwxr-xr-x | goledger | 19 |
3 files changed, 21 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = godbledger-bin pkgdesc = Accounting Software with GRPC endpoints and SQL Backends pkgver = 0.6.0 - pkgrel = 1 + pkgrel = 2 url = https://www.godbledger.com arch = x86_64 license = GPL3 @@ -14,7 +14,5 @@ sha256sums=('bae9912c2a530607d6658717cc22aec59e0caa69166fa4df57955e8361f7d69c') package() { cd linux-amd64 - install -Dm755 reporter -t "${pkgdir}/usr/bin" - install -Dm755 godbledger -t "${pkgdir}/usr/bin" - install -Dm755 ledger-cli -t "${pkgdir}/usr/bin" + install -Dm755 -t "${pkgdir}/usr/bin" reporter godbledger ledger-cli ../../goledger } diff --git a/goledger b/goledger new file mode 100755 index 000000000000..50cad42ae9ea --- /dev/null +++ b/goledger @@ -0,0 +1,19 @@ +#!/bin/sh + +function print_help { + echo -e "GoDBLedger - The Open Source Accounting System\n" + echo "Usage:" + echo -e "\t$0 verb [global options] sub-command [sub-command options] [arguments...]\n" + echo "Supported Verbs:" + echo -e "\tserver [s] Start GoDBLedger Database Server" + echo -e "\treport [r] Extracts GL and TB reports from a GoDBLedger database" + echo -e "\tclient [c] Command line for GoDBLedger gRPC" +} + +args=("$@") +case "${args[0]}" in + "server"|"s") unset args[0]; godbledger "${args[*]}" ;; + "report"|"r") unset args[0]; reporter "${args[*]}" ;; + "client"|"c") unset args[0]; ledger-cli "${args[*]}" ;; + *) print_help ;; +esac |