#! /bin/sh

if [ "$1" = "--version" ]
then
cat << EOF
ccs-findtemp 1.6.4

Copyright (C) 2005-2008 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: ccs-findtemp < list_of_pathnames

This program reads list of pathnames from standard input and checks the existence of pathnames, and dumps the nonexistent pathnames.

The nonexistent pathnames are likely used as temporal pathnames. So find the naming rules from similar nonexistent pathnames and append the pattern to /etc/ccs/exception_policy.conf and /proc/ccs/exception_policy .

You can pass the content of /etc/ccs/domain_policy.conf or /proc/ccs/domain_policy using redirection or pipes to the standard input of this program.

Examples:

# ccs-findtemp < /proc/ccs/domain_policy
 Search for nonexistent pathnames from domain_policy.

EOF
else
cat << EOF | help2man -i - -N -s 8 -n "Detect TOMOYO Linux's temporal pathnames" $0 | gzip -9 > man8/ccs-findtemp.8.gz
[SEE ALSO]

 ccs-patternize (8)

[NOTES]

 This is a symbolic link to /usr/lib/ccs/findtemp .

[AUTHORS]

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

EOF
fi
exit 0
