|
Page date Thu Feb 17 23:56:03 2011 . | Improve this page |
Not for the faint-hearted:
#! /bin/bash
(
for f in `find . -name "*.c*" -or -name "*.h" | grep -v ".cfg" | grep -v ".cproject" | grep -v ".settings"`
do
grep "OS_" $f | grep -v "#endif" | grep -v "#include" | grep -v "const" | grep -v "::OS_" | sed -e "s/\(OS_[0-9_A-Z]*\)/\1|/g" | tr '|' '\n' | grep "OS_" | sed -e "s/.*\(OS_[0-9_A-Z]*\).*/\1/"
done
) | egrep -v -e "_$" | sort -u | sed -e "s/\(.*\)/== \1 ==/"