summaryrefslogtreecommitdiff
blob: b162dc8f4df26abf9aa3be40c2183ffc12844f8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

VDB_PATH="/var/db/pkg"
track_la() {
   grep -l '\.la ' $(grep -l $1 ${VDB_PATH}/*/*/REPOSITORY | sed s/REPOSITORY/CONTENTS/) | sed "s:${VDB_PATH}/\([^/]*/[^/]*\)/CONTENTS:\1:"
}

main() {
   track_la $1
}

main keruspe