From a04e203014bb2a5d04615361f045abfcc22fea5a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 21 May 2019 13:55:26 +0200 Subject: file-conflicts new --- file-conflicts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 file-conflicts (limited to 'file-conflicts') diff --git a/file-conflicts b/file-conflicts new file mode 100755 index 00000000..c37a5867 --- /dev/null +++ b/file-conflicts @@ -0,0 +1,26 @@ +#!/bin/bash + +pkgDirBase="/srv/arch-mirror/arch/arch" +pkgDir="${pkgDirBase}/archlinuxewe/os" +pkgDir32="${pkgDirBase}/archlinux32/x86_64/releng" + +ssh -p 22222 makepkg@141.35.51.219 ' + find "'"${pkgDir}"'" "'"${pkgDir32}"'" \ + -name "any" \ + -prune \ + , \ + -name "*.files.tar.gz" \ + -printf '"'"'%p\n'"'"' \ + | while read -r repo; do + short_repo="${repo%/*}" + short_repo="${short_repo##*/}" + tar -xf "${repo}" --wildcards "*/files" --to-command '"'"'sed "s,^,$TAR_FILENAME ,"'"'"' \; 2>/dev/null \ + | sed " + / %FILES%\$/ d + /\/\$/ d + s,^\(\S\+\)/\S\+ ,\1 ${short_repo} , + " + done +' \ +| sort -k2,2 -k3,3 \ +| uniq -Df1 -- cgit v1.2.3-54-g00ecf