(Arne Babenhauserheide)
2012-06-18: first step: distro recognition. first step: distro recognition.
diff --git a/setup_infocalypse_on_linux.sh b/setup_infocalypse_on_linux.sh new file mode 100755 --- /dev/null +++ b/setup_infocalypse_on_linux.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Install and prepare infocalypse on your system. + +echo -n "Where do you store your Mercurial plugins? [~/.local/hgext]: " +read hgext +if [ "$hgext" == "" ]; then + hgext="~/.local/hgext" +fi + +distro () { + if which apt-get >&/dev/null; then + dist="debian" + fi + if which emerge >&/dev/null; then + dist="gentoo" + fi + echo $dist +} + +if [ $(distro) == "gentoo" ]; then + echo "gentoo" +fi