#! /bin/sh

if [ "$1" = "--version" ]
then
cat << EOF
tomoyo-domainmatch 2.3.0

Copyright (C) 2005-2010 NTT DATA CORPORATION.

This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
EOF
elif [ "$1" = "--help" ]
then
cat << EOF
Usage: tomoyo-domainmatch pathname

This program scans domain policy for given pathname.

Examples:

# tomoyo-domainmatch /etc/fstab
 Search for domains that access /etc/fstab .

EOF
else
cat << EOF | help2man -i - -N -s 8 -n "Scan TOMOYO Linux's domain policy" $0 | gzip -9 > man8/tomoyo-domainmatch.8.gz
[SEE ALSO]

 tomoyo-findtemp (8)

[AUTHORS]

 penguin-kernel _at_ I-love.SAKURA.ne.jp

EOF
fi
exit 0
