FreeBSD Bugzilla – Attachment 271400 Details for
Bug 292966
ports-mgmt/freebsd-bugzilla-cli: 0.15.1_1 Makefile WWW is broken; port is defunct
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
port_submit_custom.sh
port_submit_custom.sh (text/plain), 3.55 KB, created by
Sulev-Madis Silber
on 2026-06-01 13:17:14 UTC
(
hide
)
Description:
port_submit_custom.sh
Filename:
MIME Type:
Creator:
Sulev-Madis Silber
Created:
2026-06-01 13:17:14 UTC
Size:
3.55 KB
patch
obsolete
>usage() >{ > cat <<EOF >Usage: bz port_submit_custom [-n] [-N] [-f patch] [cat/port] > bz port_submit_custom -h > >Options: > -h -- this help message > -n -- optional dry run (do not actually take write actions to bugzilla) > -N -- new port > -f -- patch file > >Defaults: > Hardware defaults to 'Any' > Component defaults to 'Individual Port(s)' > Severity defaults to 'Affects Only Me' >EOF > exit 1 >} > > >submit() >{ > local f_n="$1" > local hardware="$2" > local component="$3" > local severity="$4" > local delta_file="$5" > local title="$6" > local desc_file="$7" > > > ## Load Config > . "$HOME/.fbcrc" > > > local bug_id > > > bug_id="`_submit_ports_bug \"$f_n\" \"$title\" \"$hardware\" \"$component\" \"$severity\" \"$desc_file\"`" > > > _submit_patch "$bug_id" "$f_n" "$delta_file" >} > > >_submit_patch() >{ > local bug_id="$1" > local f_n="$2" > local delta_file="$3" > > > backend_submit_attachment "$bug_id" "$delta_file" "$f_n" 1 patch patch >} > > >_submit_ports_bug() >{ > local f_n="$1" > local title="$2" > local hardware="$3" > local component="$4" > local severity="$5" > local description="$6" > > > local product='Ports & Packages' > local version=Latest > local os=Any > > > local bug_id="`backend_submit \"$product\" \"$component\" \"$version\" \"$severity\" \"$hardware\" \"$os\" \"$description\" \"$title\" \"$f_n\"`" > > > echo "$bug_id" >} > > >. "$BZ_SCRIPTDIR/_util.sh" >. "$BZ_BACKENDDIR/submit.sh" > > >. "$BZ_SCRIPTDIR/_util.sh" > > >backend_submit() >{ > local product="$1" > local component="$2" > local version="$3" > local severity="$4" > local hardware="$5" > local os="$6" > local description_file="$7" > local title="$8" > local f_n="$9" > > > [ "$f_n" -eq 1 ] && bugz="echo [dry run] $bugz" > > > local bug_id="`$bugz post --batch --product \"$product\" --component \"$component\" --version \"$version\" --severity \"$severity\" --platform \"$hardware\" --op-sys \"$os\" --description-from \"$description_file\" --title \"$title\" | tee /dev/stderr | awk '/Bug [0-9]+ submitted/{print\$4}'`" > > > # XXX: allow debugging > [ -z "$bug_id" ] && bug_id=-1 > > > echo "$bug_id" >} > > >backend_submit_attachment() >{ > local bug_id="$1" > local file="$2" > local dry_run="$3" > local patch_flag="$4" > local title="$5" > local description="$6" > local content_type="${7:-text/plain}" > > > local patch_str= > > > [ "$patch_flag" -eq 1 ] && patch_str=--patch > > > [ "$f_n" -eq 1 ] && bugz="echo [dry run] $bugz" > > > $bugz attach \ > --title "$title" \ > --description "$description" \ > --content-type "$content_type" \ > $patch_str \ > "$bug_id" "$file" >} > > >component='Individual Port(s)' >f_n=0 >hardware=Any >severity='Affects Only Me' > > >title_prefix= > >bug_port= >bug_patch= >bug_title= >bug_desc= > > >while getopts hnNf: FLAG >do > case "$FLAG" > in > n) f_n=1 ;; > N) title_prefix='[NEW PORT] ' ;; > f) bug_patch="$OPTARG" ;; > *|h) usage ;; > esac >done > >shift "$(($OPTIND - 1))" > > >ports=/usr/ports > > >bug_port="$1" > > >bug_title="`make -C \"$ports/$bug_port\" -V COMMENT`" > > >bug_title="$title_prefix$bug_port: $bug_title" > > >bug_desc="$ports/$bug_port/pkg-descr" > > >if [ ! -f "$bug_patch" -o ! -r "$bug_patch" ] >then > echo "invalid patch file '$bug_patch'" > > exit 1 >fi > > >if [ ! -f "$bug_desc" -o ! -r "$bug_desc" ] >then > echo "invalid desc file '$bug_desc'" > > exit 1 >fi > > >echo " > >port '$bug_port' > >patch file '$bug_patch' > >title '$bug_title' > >desc file '$bug_desc' > >desc '" > > >cat "$bug_desc" > > >echo "' > > >confirm (enter) or exit (^c)? > >" > >read confirm > > >submit "$f_n" "$hardware" "$component" "$severity" "$bug_patch" "$bug_title" \ >"$bug_desc"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 292966
:
271399
| 271400