summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/packages.match2
-rwxr-xr-xdata/update-packages-match2
2 files changed, 4 insertions, 0 deletions
diff --git a/data/packages.match b/data/packages.match
index 65b7981..49f5d23 100644
--- a/data/packages.match
+++ b/data/packages.match
@@ -1,4 +1,5 @@
[Package Matches]
+arc=
arj=
binutils=
brotli=
@@ -13,6 +14,7 @@ lzip=
lzma=
lzop=
ncompress=
+nomarch=
p7zip=
p7zip-full=
p7zip-rar=
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