diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-05-18 06:08:56 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-05-18 06:08:56 -0500 |
commit | ca4a852229b5bad0009ce25d809f908c2780978f (patch) | |
tree | 1d6ecb218ab8cdc782f7943750f3659046395cf5 /genheader.sh | |
parent | a91d1a2b3cd7b3b65ba86ac1f5a94d3e806a109c (diff) | |
download | libhashtable-ca4a852229b5bad0009ce25d809f908c2780978f.tar.gz libhashtable-ca4a852229b5bad0009ce25d809f908c2780978f.zip |
changed the use of wc -l to grep -c '^.*$' because for some reasons Linux and BSD can't agree on how to space the output.
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 |