git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/aux/git-checkers/readmegen
diff options
context:
space:
mode:
Diffstat (limited to 'aux/git-checkers/readmegen')
-rwxr-xr-xaux/git-checkers/readmegen11
1 files changed, 11 insertions, 0 deletions
diff --git a/aux/git-checkers/readmegen b/aux/git-checkers/readmegen
new file mode 100755
index 0000000..40c2dfa
--- /dev/null
+++ b/aux/git-checkers/readmegen
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+[ ! -r /etc/os-release ]&&echo "/etc/os-release not readable. Wrong OS or deprecated OS?"&&exit 1
+LOCOS=$(grep ^ID= /etc/os-release |awk -F= '{print $NF}'|tr '[:upper:]' '[:lower:]')
+
+case $LOCOS in
+ debian|ubuntu) ./.readmegen-debian;;
+ *suse|*sles*) ./.readmegen-suse;;
+ redhat|fedora) echo "Red Hat / Fedora not implemented yet!";exit 1;;
+ *) echo "Unknown OS!";exit 1;;
+esac