Explorar el Código

Add Bugzilla URL list generator

master
JustAnotherArchivist hace 2 años
padre
commit
0b13758659
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. +15
    -0
      bugzilla-url-list

+ 15
- 0
bugzilla-url-list Ver fichero

@@ -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; }'

Cargando…
Cancelar
Guardar