mirror of
https://github.com/sheumann/hush.git
synced 2024-08-19 13:28:57 +00:00
update is primarily work done by Larry Doolittle, but I did some touchups of my own to make it work for me, -Erik
14 lines
309 B
Bash
Executable File
14 lines
309 B
Bash
Executable File
#!/bin/sh
|
|
|
|
RAW=` \
|
|
gcc -E -dM ${1:-Config.h} | \
|
|
sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
|
|
| tr A-Z a-z | sort
|
|
`
|
|
test "${RAW}" != "" || exit
|
|
cd ${2:-.}
|
|
# By running $RAW through "ls", we avoid listing
|
|
# source files that don't exist.
|
|
ls $RAW 2>/dev/null | tr '\n' ' '
|
|
|