From 9f7dd2b3a0ece027275a735c1c0a0c1f88814d0f Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 5 Feb 2021 13:38:48 +0100 Subject: packages.match: add and run update-packages-match script --- data/packages.match | 2 ++ data/update-packages-match | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 data/update-packages-match 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 -- cgit v1.2.1