1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#! /bin/sh
if [ "$1" = "--version" ]
then
cat << EOF
ccs-pathmatch 1.7.2
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: ccs-pathmatch list_of_pathname_patterns
This program scans the filesystem for given pathname patterns.
You can use this program to determine how deep patterns are needed for defining 'file_pattern' or 'path_group'.
Examples:
# ccs-pathmatch '/etc/\*' '/tmp/\*'
Search for pathnames matching '/etc/\*' or '/tmp/\*' pattern.
EOF
else
cat << EOF | help2man -i - -N -s 8 -n "Do TOMOYO Linux's pathname pattern matching on the filesystem" $0 | gzip -9 > man8/ccs-pathmatch.8.gz
[SEE ALSO]
ccs-patternize (8)
[NOTES]
You unlikely need this program because TOMOYO 1.7.1 introduced recursive directory matching. For example, you can specify /var/www/html/\e{\e*\e}/\e*.html for matching /var/www/html/\e*/\e*.html /var/www/html/\e*/\e*/\e*.html /var/www/html/\e*/\e*/\e*/\e*.html etc.
[AUTHORS]
penguin-kernel _at_ I-love.SAKURA.ne.jp
EOF
fi
exit 0
|