summaryrefslogtreecommitdiff
path: root/file-conflicts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-21 13:55:26 +0200
committerErich Eckner <git@eckner.net>2019-05-21 13:55:26 +0200
commita04e203014bb2a5d04615361f045abfcc22fea5a (patch)
tree0235229af5f386ffa3acd70273fb48af7786db3b /file-conflicts
parent619bd94ee79182ee9aa5e4ef686bb2f08d023a25 (diff)
downloadarchlinuxewe.git.save-a04e203014bb2a5d04615361f045abfcc22fea5a.tar.xz
file-conflicts new
Diffstat (limited to 'file-conflicts')
-rwxr-xr-xfile-conflicts26
1 files changed, 26 insertions, 0 deletions
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