File: update-packages-match

package info (click to toggle)
file-roller 44.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,884 kB
  • sloc: ansic: 34,077; xml: 275; python: 51; sh: 26; makefile: 18; javascript: 9
file content (4 lines) | stat: -rwxr-xr-x 248 bytes parent folder | download | duplicates (3)
1
2
3
4
#!/bin/sh
export LC_ALL=C.utf8
echo "[Package Matches]" > packages.match
find .. -iname "*.c" -exec grep FR_PACKAGES '{}' ';' | sed -e 's/.*FR_PACKAGES[ ]*[(]"\([^"]*\)"[)];/\1/g' -e 's/,/\n/g' | sort -u | sed -e 's/\(.*\)/\1=/g' >> packages.match