NoPaste

apt-diff-index

von inne

SNIPPET_TEXT:
  1. user@host:~/apt-diff-index
  2. $ cat apt-diff-src-index
  3. #!/usr/bin/env sh
  4. # Den APT-Cache über Versionen hinweg verfolgen
  5.  
  6. set -e
  7.  
  8. export LC_ALL=C
  9. #export PATH=".:$PATH"
  10.  
  11. show_bin () {
  12.         while read REPLY; do
  13.                 apt-cache showsrc "$REPLY" | sed -n -E '/^Binary: /{s///;s/, /\n/g;p}' | head -1
  14.         done
  15. }
  16.  
  17. show_desc () {
  18.         while read REPLY; do
  19.                 echo -n "$REPLY - "; apt-cache show "$REPLY" | sed -n -E "/^Description.*: /{s///;p}" | head -1
  20.         done
  21. }
  22.  
  23. temp="`mktemp`"
  24.  
  25. apt-cache dumpavail | sed -n -E '/^Source: /{s///;s/ .*//;p}' | sort -u >"$temp"
  26.  
  27. comm -2 -3 "$temp" "old" | tee "diff" | show_bin | show_desc
  28.  
  29. mv "$temp" "old"

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN