summaryrefslogtreecommitdiff
path: root/source/d/slacktrack/slacktrack-project/old_stuff/findy
blob: 382eea481ca9901a23c448f5610b2c6414a69105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -x
function package_name () {
  local PACKAGENAME="$( echo $1 | rev | cut -d- -f4- | rev )"
  echo ${PACKAGENAME}
}


PACKAGE=linuxdoc-tools-2.0-arm-1.txz

# need to get the find op right.
find . -path './install' -prune -o -type f -printf "%P\n" | egrep -v "^$" > /tmp/log # | \
( cd /var/log/packages
  cat /tmp/log | while read file ; do
    grep -H "${file}" * 
 done ) | sort | uniq | egrep -v "^$( package_name ${PACKAGE}).*:" > /tmp/log2 2>&1

cat /tmp/log2