summaryrefslogtreecommitdiffstats
path: root/bug2wiki.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bug2wiki.sh')
-rwxr-xr-xbug2wiki.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bug2wiki.sh b/bug2wiki.sh
new file mode 100755
index 0000000..25957af
--- /dev/null
+++ b/bug2wiki.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# just run it and enter one ID per line
+#
+
+while read bugid; do
+ title="$(curl "http://bugs.archlinux.org/task/$bugid" 2>/dev/null |
+ grep -A 1 "<h2 class=\"summary" |
+ tail -n1 |
+ sed -rn 's/\s*(FS#[0-9]*) - (.*)<\/h2>/\1] - \2/p')"
+ if curl "http://wiki.archlinux.org/index.php/Bug_Day_TODO" 2>/dev/null| grep -q "FS#$bugid<"; then
+ echo -e "\e[0;31m !! Bug seems to be already on the TODO list\e[0m"
+ fi
+ echo "* [http://bugs.archlinux.org/task/$bugid $title"
+ echo "* [http://bugs.archlinux.org/task/$bugid $title" | xclip
+done