summaryrefslogtreecommitdiff
path: root/data/update-packages-match
blob: 4a1a8e340cc517429a78112ff64387166c7bba62 (plain)
1
2
list=`find .. -iname "*.c" | xargs grep PACKAGES | sed -e 's/.*PACKAGES[ ]*[(]"\([^"]*\)"[)];/\1/g' -e 's/,/\n/g' | sort -u | sed -e 's/\(.*\)/\1=/g' | tr '\n' '|'` 
sed -e 's/@NAMES@/'"$list"'/g' < packages.match.in | tr '|' '\n' > packages.match