#!/bin/sh . $(dirname $0)/adc.common-functions # the help adc now takes some options; we need to process them first [ "$1" = "-list" -o "$HELP_LIST_DEFAULT" = "1" ] && { # the GL_ADC_PATH directory has files other than ADCs also, notably the # include file for shell ADCs, and maybe a README or two. Those should be # chmod -x. # if you want to temporarily hide any ADC from being listed, do the same # thing: chmod -x cd $($GL_BINDIR/gl-query-rc GL_ADC_PATH) for i in * do [ -x $i ] && echo $i done exit 0 } # the local site can have a file called gl-adc-help.txt, which will be used as # the *entire* help text for this site... [ -f $HOME/gl-adc-help.txt ] && { cat $HOME/gl-adc-help.txt exit 0 } # or the local site will use the default help text in this file, with an # optional pre- and post- text that is site local (like maybe the admin's # contact details) # pre [ -f $HOME/gl-adc-pre-help.txt ] && cat $HOME/gl-adc-pre-help.txt # default help text cat <