#!/bin/sh

if [ "${1}" = "" ]; then
    echo "Enable or disable the WildMenus bundle."
    echo "Usage: WildMenus [On|Off]"
    exit
fi

if [ "${1}n" = "Onn" ]; then
    defaults write NSGlobalDomain GSAppKitUserBundles "(/usr/lib/GNUstep/Bundles/WildMenus.themeEngine)"
else
    defaults delete NSGlobalDomain GSAppKitUserBundles
fi
