summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/attachments/20110916
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-sysadm/attachments/20110916
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-sysadm/attachments/20110916')
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0001.bin33
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0002.bin20
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0003.bin29
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0004.bin33
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0005.bin20
-rw-r--r--zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment.bin29
6 files changed, 164 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0001.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0001.bin
new file mode 100644
index 000000000..2dbb4eab2
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0001.bin
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Config
+submittors="/path/to/submittors"
+MIRROR="http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS"
+
+# Set up source repository in a temporary root
+repos=`mktemp -d`
+urpmi.addmedia --urpmi-root "$repos" "core release" "$MIRROR/core/release/"
+urpmi.addmedia --urpmi-root "$repos" "nonfree release" "$MIRROR/nonfree/release/"
+urpmi.addmedia --urpmi-root "$repos" "tainted release" "$MIRROR/tainted/release/"
+
+# Get current unmaintained packages
+wget http://pkgsubmit.mageia.org/data/maintdb.txt -qO - | grep -e ' nobody$' | cut -d ' ' -f 1 | (
+ # Foreach package
+ while read p; do
+ # get the changelog and find the committer names between < and >
+ urpmq --urpmi-root "$repos" --changelog --src "$p" | sed -E -e '/<(.+?)>/ !d' -e 's/^.*<(.+?)>.*$/\1/' | (
+ # for each such comitter
+ while read u; do
+ # check if (s)he is a full packager
+ if grep '^'"$u"'$' "$submittors" >/dev/null 2>/dev/null; then
+ # output the first result and stop checking
+ echo "$p $u"
+ break
+ fi
+ done
+ )
+ done
+)
+
+# Clean up temp source repos
+rm -fr "$repos"
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0002.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0002.bin
new file mode 100644
index 000000000..6ceacba82
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0002.bin
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Config
+SVN="svn://svn.mageia.org/svn/packages/cauldron"
+
+# For all unmaintained packages,
+wget http://pkgsubmit.mageia.org/data/maintdb.txt -qO - | grep -e ' nobody$' | cut -d ' ' -f 1 | (
+ while read package; do
+ # If the package current dir exists,
+ if svn ls "$SVN/$package/current" 2>/dev/null >&2; then
+ # Find first revision,
+ revision=`svn log "$SVN/$package/current" --xml --with-no-revprops | sed -E -e '/revision="[0-9]+"/ !d' -e 's/^.*revision="([0-9]+)".*$/\1/' | tail -n 1`
+ if test "x$revision" != "x"; then
+ # Output it's committer
+ echo -n "$package "
+ svn propget svn:author "$SVN/$package/current" --revprop -r "$revision"
+ fi
+ fi
+ done
+)
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0003.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0003.bin
new file mode 100644
index 000000000..cafef7bea
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0003.bin
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+if test "x$1" = "x"; then
+ echo "Syntax: $0 (cauldron|<number>)" >&2
+ exit -1
+fi
+
+DISTR="$1"
+
+if test "x$DISTR" != "xcauldron"; then
+ DISTR="updates/$DISTR"
+fi
+
+# Config
+SVN="svn://svn.mageia.org/svn/packages"
+
+# For all packages,
+svn ls "$SVN/$DISTR" | (
+ while read package; do
+ package=${package%/}
+ # If the package current dir exists,
+ if svn ls "$SVN/$DISTR/$package/current" 2>/dev/null >&2; then
+ # For all revisions, output "package committer",
+ # make it unique with a counter,
+ # and reformat output
+ svn log "$SVN/$DISTR/$package/current" --xml --with-revprop svn:author | sed -E -e '/<author>.+<\/author>/ !d' -e 's/<author>(.+)<\/author>/\1/' | grep -v '^schedbot$' | sort | uniq -c | sort -n -r | awk '{ print "'"$package"',"$2","$1 }'
+ fi
+ done
+)
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0004.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0004.bin
new file mode 100644
index 000000000..2dbb4eab2
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0004.bin
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+# Config
+submittors="/path/to/submittors"
+MIRROR="http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS"
+
+# Set up source repository in a temporary root
+repos=`mktemp -d`
+urpmi.addmedia --urpmi-root "$repos" "core release" "$MIRROR/core/release/"
+urpmi.addmedia --urpmi-root "$repos" "nonfree release" "$MIRROR/nonfree/release/"
+urpmi.addmedia --urpmi-root "$repos" "tainted release" "$MIRROR/tainted/release/"
+
+# Get current unmaintained packages
+wget http://pkgsubmit.mageia.org/data/maintdb.txt -qO - | grep -e ' nobody$' | cut -d ' ' -f 1 | (
+ # Foreach package
+ while read p; do
+ # get the changelog and find the committer names between < and >
+ urpmq --urpmi-root "$repos" --changelog --src "$p" | sed -E -e '/<(.+?)>/ !d' -e 's/^.*<(.+?)>.*$/\1/' | (
+ # for each such comitter
+ while read u; do
+ # check if (s)he is a full packager
+ if grep '^'"$u"'$' "$submittors" >/dev/null 2>/dev/null; then
+ # output the first result and stop checking
+ echo "$p $u"
+ break
+ fi
+ done
+ )
+ done
+)
+
+# Clean up temp source repos
+rm -fr "$repos"
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0005.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0005.bin
new file mode 100644
index 000000000..6ceacba82
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment-0005.bin
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Config
+SVN="svn://svn.mageia.org/svn/packages/cauldron"
+
+# For all unmaintained packages,
+wget http://pkgsubmit.mageia.org/data/maintdb.txt -qO - | grep -e ' nobody$' | cut -d ' ' -f 1 | (
+ while read package; do
+ # If the package current dir exists,
+ if svn ls "$SVN/$package/current" 2>/dev/null >&2; then
+ # Find first revision,
+ revision=`svn log "$SVN/$package/current" --xml --with-no-revprops | sed -E -e '/revision="[0-9]+"/ !d' -e 's/^.*revision="([0-9]+)".*$/\1/' | tail -n 1`
+ if test "x$revision" != "x"; then
+ # Output it's committer
+ echo -n "$package "
+ svn propget svn:author "$SVN/$package/current" --revprop -r "$revision"
+ fi
+ fi
+ done
+)
diff --git a/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment.bin b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment.bin
new file mode 100644
index 000000000..cafef7bea
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/attachments/20110916/ba7d4479/attachment.bin
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+if test "x$1" = "x"; then
+ echo "Syntax: $0 (cauldron|<number>)" >&2
+ exit -1
+fi
+
+DISTR="$1"
+
+if test "x$DISTR" != "xcauldron"; then
+ DISTR="updates/$DISTR"
+fi
+
+# Config
+SVN="svn://svn.mageia.org/svn/packages"
+
+# For all packages,
+svn ls "$SVN/$DISTR" | (
+ while read package; do
+ package=${package%/}
+ # If the package current dir exists,
+ if svn ls "$SVN/$DISTR/$package/current" 2>/dev/null >&2; then
+ # For all revisions, output "package committer",
+ # make it unique with a counter,
+ # and reformat output
+ svn log "$SVN/$DISTR/$package/current" --xml --with-revprop svn:author | sed -E -e '/<author>.+<\/author>/ !d' -e 's/<author>(.+)<\/author>/\1/' | grep -v '^schedbot$' | sort | uniq -c | sort -n -r | awk '{ print "'"$package"',"$2","$1 }'
+ fi
+ done
+)