File: list_functions_doc.sh

package info (click to toggle)
ustr 1.0.4-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,676 kB
  • sloc: ansic: 19,041; makefile: 935; perl: 779; sh: 686; xml: 97
file content (15 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

if false; then
echo "Do nothing"
elif [ -r ./Documentation/functions.txt ]; then
      doc=./Documentation
elif [ -r ../Documentation/functions.txt ]; then
      doc=../Documentation
else
 echo "No Documentation dir"
 exit 1;
fi

egrep "^Function" $doc/functions.txt | awk '{ print $2 }' | \
  egrep -v "^USTR_FLAGXX"