| 1 |
#! /bin/bash |
| 2 |
|
| 3 |
# Reportbug custom content generator for ‘dput’ package. |
| 4 |
# Documentation: ‘/usr/share/doc/reportbug/README.developers.gz’. |
| 5 |
|
| 6 |
candidate_config_files=( |
| 7 |
/etc/dput.cf |
| 8 |
"${XDG_CONFIG_HOME:-$HOME/.config}"/dput/dput.cf |
| 9 |
"$HOME"/.dput.cf |
| 10 |
) |
| 11 |
|
| 12 |
for config_file in "${candidate_config_files[@]}" ; do |
| 13 |
printf "\n-- %s --\n" "$config_file" >&3 |
| 14 |
cat "$config_file" >&3 |
| 15 |
done |
| 16 |
|
| 17 |
printf "\n-- Configuration parsed by ‘dput’ --\n" |
| 18 |
dput --print >&3 |
| 19 |
|
| 20 |
|
| 21 |
# Copyright © 2015–2024 Ben Finney <[email protected]> |
| 22 |
# |
| 23 |
# This is free software: you may copy, modify, and/or distribute this work |
| 24 |
# under the terms of the GNU General Public License as published by the |
| 25 |
# Free Software Foundation; version 3 of that license or any later version. |
| 26 |
# No warranty expressed or implied. See the file ‘LICENSE.GPL-3’ for details. |
| 27 |
|
| 28 |
# Local variables: |
| 29 |
# coding: utf-8 |
| 30 |
# mode: sh |
| 31 |
# End: |
| 32 |
# vim: fileencoding=utf-8 filetype=sh : |