From 92d40d26682ff4fb2fc44d8c0c4f313a4b9b0abd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 16 Apr 2016 11:16:25 +0200 Subject: Add scripts Signed-off-by: Florian Pritz --- ca | 18 ++++++++++++++++++ fb-test | 10 ++++++++++ get-cert | 2 ++ mklatexreport | 5 +++++ pkitool | 3 +++ wget-website | 4 ++++ 6 files changed, 42 insertions(+) create mode 100755 ca create mode 100755 fb-test create mode 100755 get-cert create mode 100755 mklatexreport create mode 100755 pkitool create mode 100755 wget-website diff --git a/ca b/ca new file mode 100755 index 0000000..6a170f4 --- /dev/null +++ b/ca @@ -0,0 +1,18 @@ +#!/bin/bash + +export EASY_RSA="$HOME/docs/easy-rsa" +cd "$EASY_RSA" + +if (($#<1)); then + echo "usage: ca [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}" diff --git a/fb-test b/fb-test new file mode 100755 index 0000000..74fbada --- /dev/null +++ b/fb-test @@ -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"