summaryrefslogtreecommitdiff
path: root/data/update-packages-match
diff options
context:
space:
mode:
Diffstat (limited to 'data/update-packages-match')
-rwxr-xr-xdata/update-packages-match2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/update-packages-match b/data/update-packages-match
new file mode 100755
index 0000000..4a1a8e3
--- /dev/null
+++ b/data/update-packages-match
@@ -0,0 +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