#!/bin/bash # # Gnats installation script -- written by Brian White # (This was my very first attempt at learning perl... please forgive me!) # # Forgiving -- rewritten to bash :-) by Milan Zamazal . # ...and streamlined with SED by Chad Walstrom set -e ############################################################################### # # Utility functions # # Call arguments and never return error function protect () { "$@" || true; } ############################################################################### # # Remove the 'gnats' system configuration when purging # if [ "$1" = purge ] && [ -d "@GNATSDBDIR@" ]; then rmdir "@GNATSDBDIR@" fi # Automatically added debhelper stuff #DEBHELPER#