11 if [ -z "$1" ] ; then usage
12 elif [ $1 = / ] ; then echo $0: expects non-/ argument for '$1' 1>&2
13 elif [ ! -d $1 ] ; then
14 echo $0: $1: no such directory
16 else TOP_DIR="`echo $1|sed -e 's:/$::'`"
20 DOC_NAME=documentation.list
23 find $TOP_DIR -type f -o -type l | sed '
25 s:\(.*/man/man./.*\.[0-9]\):%doc \1:
26 s:\(.*/man/*/man./.*\.[0-9]\):%doc \1:
27 s:\(.*/gtk-doc/html/.*\):%doc \1:
28 s:\(.*/info/.*\info.*\):%doc \1: