Lines Matching refs:filename

481 	typeset filename="$1"
486 # check whether "filename" is a plain, readable file
487 [[ ! -f "$filename" ]] && return 1
488 [[ ! -r "$filename" ]] && return 1
495 # at the file's content if possible and at the filename
500 case "$filename" in
516 fileeval="$(LC_ALL=C /usr/bin/file "$filename")"
540 # pass three: fallhack to filename matching
541 case "$filename" in
604 typeset filename="$2"
610 records[${filename}]=(
611 typeset filename="$filename"
622 records[${filename}].hashsum["md5"]="$(sum -x md5 < "$filename")"
623 records[${filename}].hashsum["sha1"]="$(sum -x sha1 < "$filename")"
625 if get_file_format "$filename" datatype ; then
626 records[${filename}].fileformat_found="true"
627 records[${filename}].file_format="$datatype"
634 enumerate_comments_cpp "${filename}" "records[${filename}].comments" ${max_num_comments} ${max_filesize_for_scan} && \
635 records[${filename}].comments_parsed=true
638 enumerate_comments_shell "${filename}" "records[${filename}].comments" ${max_num_comments} ${max_filesize_for_scan} && \
639 records[${filename}].comments_parsed=true
642 enumerate_comments_troff "${filename}" "records[${filename}].comments" ${max_num_comments} ${max_filesize_for_scan} && \
643 records[${filename}].comments_parsed=true
647 # enumerate_comments_xml "${filename}" "records[${filename}].comments" ${max_num_comments} ${max_filesize_for_scan} && \
648 # records[${filename}].comments_parsed=true
859 [[ "${node.filename}" != ${options.filepattern.accept} ]] ; then
863 [[ "${node.filename}" == ${options.filepattern.reject} ]] ; then
887 printf "\f#### filename='%s',\tcomment=%s\n" "${node.filename}" "$j"
894 printf "## no match found in '%s'," "${node.filename}"
919 [[ "${node.filename}" != ${options.filepattern.accept} ]] ; then
923 [[ "${node.filename}" == ${options.filepattern.reject} ]] ; then
963 hc_node.fileids+=( "$(printf "%s (md5='%s', sha1='%s')\n" "${node.filename}" "${node.hashsum["md5"]}" "${node.hashsum["sha1"]}")" )
971 printf "%s (md5='%s', sha1='%s'), " "${node.filename}" "${node.hashsum["md5"]}" "${node.hashsum["sha1"]}"
979 # print comments and all fileids (filename+hash sums) which include this comment