diff options
Diffstat (limited to 'finde-dateien')
-rwxr-xr-x | finde-dateien | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/finde-dateien b/finde-dateien index 0629bd6..eeccfc9 100755 --- a/finde-dateien +++ b/finde-dateien @@ -2,6 +2,26 @@ set -e +if [ $# -eq 0 ] +then + $0 $( + ls /usr/ports/distfiles | \ + grep '^wurzel-' | \ + sed 's|-[0-9.]\+\.tar\.bz2$||' | \ + sort -u + ) > \ + "$(dirname "$0")/dateien" + exit $? +elif [ $# -gt 1 ] +then + for pkg in "$@" + do + echo "${pkg}" + done | \ + parallel "$0" + exit $? +fi + . "/usr/ports/deepthought/$1/Pkgfile" beenden() @@ -68,7 +88,7 @@ ssh wurzel ' sort | \ uniq -m1 | \ cut -d' ' -f3 | \ - sed 's|^\./||' | \ + sed 's|^\./||; s|^|'"${name}"':|' | \ sort beenden 0 |