#!/bin/sh
# Filename:      grml
# Purpose:       just output some info text when running the grml-command
# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports:   see http://grml.org/bugs/
# License:       This file is licensed under the GPL v2.
# Latest change: Son Okt 28 16:30:58 CET 2007 [mika]
################################################################################

if [ "$1" = '-h' -o "$1" = '--help' ] ; then
   echo 'Need help? Use grml-tips or visit http://grml.org/ and http://wiki.grml.org/!'
   exit 0
fi

if [ "$1" = '-v' -o "$1" = '--version' ] ; then
  if [ -r /etc/grml_version ] ; then
     echo "Yes, you are running grml. But you are searching for the zsh alias grml-version."
     echo 'Anyway, I will try to help you, there we go:'
     cat /etc/grml_version
  else
     echo "Ehm - having a script named grml but not running on a grml system?! So don't ask me for the version!"
     exit 1
  fi
fi

if [ -r /etc/grml_version ] ; then
  echo "Yes, you are running grml."
else
  echo "Ehm - having a script named grml but not running on a grml system?! Sorry, I am confused."
  exit 1
fi

## END OF FILE #################################################################
