source: npl/findpkgfile @ ac05c71

gcc484perl-5.22
Last change on this file since ac05c71 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 395 bytes
Line 
1#!/bin/bash
2SEARCH="$1"
3[ "$1" ] || exit 1
4
5
6if ! [ -e .pkgfiles ] || [ "$SEARCH" == '--update' ]; then
7        rm .pkgfiles.tmp 2>/dev/null
8        echo "creating filelist..."
9        find -type f -name '*.pkg' | while read F; do
10                echo "indexing $F"
11                tar -tzf "$F" 2>/dev/null|sed "s@^@$F: @" >> .pkgfiles.tmp
12        done
13        mv .pkgfiles.tmp .pkgfiles
14fi
15
16[ "$SEARCH" == "--update" ] && exit 0
17
18grep "$SEARCH" .pkgfiles
19
Note: See TracBrowser for help on using the repository browser.