diff options
author | H. P. <harald.p.@xmart.de> | 2018-11-01 13:30:58 +0100 |
---|---|---|
committer | H. P. <harald.p.@xmart.de> | 2018-11-01 13:30:58 +0100 |
commit | 0632591996893fe136a1f2fe44d9b9f404f41f3e (patch) | |
tree | 7340edbe7c212da3db45a83219147143a3268c8d /aux/git-checkers/readmegen | |
download | fedora-laptop-0632591996893fe136a1f2fe44d9b9f404f41f3e.tar.bz2 |
Initial commit
Diffstat (limited to 'aux/git-checkers/readmegen')
-rwxr-xr-x | aux/git-checkers/readmegen | 11 |
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 |