diff options
Diffstat (limited to 'pkgdiff')
-rwxr-xr-x | pkgdiff | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/pkgdiff b/pkgdiff deleted file mode 100755 index 837c70b..0000000 --- a/pkgdiff +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# compare filenames in 2 tarballs, except /usr/doc/blah-<version> dirs -# get treated specially. - -pkg_name() { - echo "$1" | sed 's,.*/,,' | sed 's,\.[^.]*$,,' -} - -list_tar() { - pkg="$( echo $1 | sed 's,\.[^.]*,,' )" - tar tf "$1" | sed 's,usr/doc/[^/]*/,usr/doc/@DOCDIR@/,' | sort > $DIR/$( pkg_name "$1" ) -} - -DIR=/tmp/pkgdiff.$RANDOM.$$ -echo $DIR -mkdir -p $DIR || exit 1 -list_tar "$1" -list_tar "$2" -diff $DIR/$( pkg_name "$1" ) $DIR/$( pkg_name "$2" ) -rm -rf $DIR |