diff options
Diffstat (limited to 'genheader.sh')
-rwxr-xr-x | genheader.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genheader.sh b/genheader.sh index 8a253b7..5146af1 100755 --- a/genheader.sh +++ b/genheader.sh @@ -1,4 +1,4 @@ #!/bin/sh -L=$(wc -l libhashtable.c | tr -s ' ' | cut '-d ' -f2) +L=$(grep -c '^.*$' libhashtable.c) cat libhashtable.c | grep -A "$L" _A_ | grep -B "$L" _B_ | grep -v "_[AB]_" > hashtable.h cat libhashtable.c | grep '(.*) *{' | egrep -v 'switch|if|for|while' | sed 's/ {/;/' >> hashtable.h |