summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xfinde-dateien22
2 files changed, 22 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..31c2e0c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dateien
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