diff options
author | Erich Eckner <git@eckner.net> | 2016-10-24 13:52:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-10-24 13:52:08 +0200 |
commit | 60a0f8895f12522a278f134d84fe4e0ffd09d6fc (patch) | |
tree | f40278e4ea9fb7a85a6964ed14f758b4b6ce2480 | |
parent | 8e4b55ef6633cf318566d4d48d84703b209ab2ea (diff) | |
download | wurzel-paket-tools-60a0f8895f12522a278f134d84fe4e0ffd09d6fc.tar.xz |
findet jetzt die bereits vorhandenen Dateien
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | finde-dateien | 22 |
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 |