add check-distfile script to report distfiles issues while fetching
authorSofian Brabez <sbz@6dev.net>
Thu, 4 Mar 2021 17:30:50 +0000 (17:30 +0000)
committersbz <sbz@6dev.net>
Thu, 4 Mar 2021 17:30:50 +0000 (17:30 +0000)
check-distfile.sh [new file with mode: 0644]

diff --git a/check-distfile.sh b/check-distfile.sh
new file mode 100644 (file)
index 0000000..3acc282
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+svnbase="/home/sbz/svn/ports"
+
+[ ! -f /usr/local/bin/distilator ] && pkg install -y distilator
+
+ports=$(make -C "${svnbase}" search key="sbz@FreeBSD.org" \
+    display=path|grep -v ^$|awk '{print $2}')
+
+for origin in ${ports};
+do
+    (cd ${origin}; echo "Port: ${origin}"; distilator; echo) | tee -a /tmp/myport-distfile.log
+done