Last change
on this file since 76ea60c 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 |
---|
2 | SEARCH="$1" |
---|
3 | [ "$1" ] || exit 1 |
---|
4 | |
---|
5 | |
---|
6 | if ! [ -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 |
---|
14 | fi |
---|
15 | |
---|
16 | [ "$SEARCH" == "--update" ] && exit 0 |
---|
17 | |
---|
18 | grep "$SEARCH" .pkgfiles |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.