diff options
-rwxr-xr-x | ca | 18 | ||||
-rwxr-xr-x | fb-test | 10 | ||||
-rwxr-xr-x | get-cert | 2 | ||||
-rwxr-xr-x | mklatexreport | 5 | ||||
-rwxr-xr-x | pkitool | 3 | ||||
-rwxr-xr-x | wget-website | 4 |
6 files changed, 42 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/bash + +export EASY_RSA="$HOME/docs/easy-rsa" +cd "$EASY_RSA" + +if (($#<1)); then + echo "usage: ca <command> [arguments]" + echo + find . -maxdepth 1 -executable -type f -printf '%f\n' + exit 0 +fi + +source ./vars + +export KEY_DIR="$EASY_RSA/keys" +export KEY_OU="." + +exec ./$1 "${@:2}" @@ -0,0 +1,10 @@ +#!/bin/bash + +ret=0 + +~/git/filebin/run-tests.sh "$@" +ret+=$? +TESTSUITE_DB=postgres ~/git/filebin/run-tests.sh "$@" +ret+=$? + +exit $((ret>0)) diff --git a/get-cert b/get-cert new file mode 100755 index 0000000..f96c0ae --- /dev/null +++ b/get-cert @@ -0,0 +1,2 @@ +#!/bin/bash +sed -n '/-----BEGIN/,/-----END/p' ~/docs/easy-rsa/keys/$1.crt diff --git a/mklatexreport b/mklatexreport new file mode 100755 index 0000000..4c943a2 --- /dev/null +++ b/mklatexreport @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +latexmk -shell-escape "$1" </dev/null +mv "out/$1.pdf" . @@ -0,0 +1,3 @@ +#!/bin/bash + +exec ca pkitool "$@" diff --git a/wget-website b/wget-website new file mode 100755 index 0000000..799a5aa --- /dev/null +++ b/wget-website @@ -0,0 +1,4 @@ +#!/bin/bash + +exec wget --mirror --convert-links --backup-converted --adjust-extension "$@" + |