Browse Source

Add Bugzilla URL list generator

master
JustAnotherArchivist 2 years ago
parent
commit
0b13758659
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      bugzilla-url-list

+ 15
- 0
bugzilla-url-list View File

@@ -0,0 +1,15 @@
#!/bin/bash
if [[ $# -ne 3 ]]
then
echo "Usage: bugzilla-url-list BASEURL MAXBUG MAXATTACHMENT" >&2
exit 1
fi

baseUrl="$1"
declare -i maxBug="$2"
declare -i maxAttachment="$3"

{
seq "${maxBug}" | awk '{ print "show_bug.cgi?id=" $1; print "show_bug.cgi?format=multiple&id=" $1; print "show_bug.cgi?ctype=xml&id=" $1; print "show_activity.cgi?id=" $1; }'
seq "${maxAttachment}" | awk '{ print "attachment.cgi?id=" $1; print "attachment.cgi?id=" $1 "&action=edit"; }'
} | awk -v baseUrl="${baseUrl}" '{ print baseUrl $1; }'

Loading…
Cancel
Save