3 if [ "X$1" == "X" ]; then
4 NAME=$(grep '^\*' ~/.siglist | head -n 1 | tr -s '\t' ' ' | cut -d' ' -f2)
5 if [ -z "$NAME" ]; then
6 echo "Usage: $0 signature-group [pattern]" >&2
13 ARGS=$(grep "^$NAME\\>" ~/.siglist | head -n 1 | tr -s '\t' ' ' | cut -d' ' -f2-)
14 if [ -z "$ARGS" ]; then
15 echo "No such signature group: $NAME" >&2
19 BASEDIR=$(eval echo $(echo "$ARGS" | cut -d' ' -f1))
20 STATICFILE=$(eval echo $(echo "$ARGS" | cut -d' ' -f2))
21 FORTUNEARGS=$(eval echo $(echo "$ARGS" | cut -d' ' -f3-))
25 if [ "$2" ]; then fortune $FORTUNEARGS -m "$2"; else fortune $FORTUNEARGS; fi