git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/aux/git-checkers/readmegen
blob: 40c2dfa87afc2315aa3a2bf50d737b0e794ddcd4 (plain)
1
2
3
4
5
6
7
8
9
10
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