The little things give you away... A collection of various small helper stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
527 B

  1. #!/bin/bash
  2. if [[ $# -ne 3 ]]
  3. then
  4. echo "Usage: bugzilla-url-list BASEURL MAXBUG MAXATTACHMENT" >&2
  5. exit 1
  6. fi
  7. baseUrl="$1"
  8. declare -i maxBug="$2"
  9. declare -i maxAttachment="$3"
  10. {
  11. 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; }'
  12. seq "${maxAttachment}" | awk '{ print "attachment.cgi?id=" $1; print "attachment.cgi?id=" $1 "&action=edit"; }'
  13. } | awk -v baseUrl="${baseUrl}" '{ print baseUrl $1; }'