gbranden pushed a commit to branch master in repository groff. commit e552775dd0b5f6233a1ec1b7765a7af41e3b2d0e Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Mon Jul 14 18:36:48 2025 -0500
font/scripts/*:Prevent recurrence of prev problem. ...by computing the basename of the script file, storing it a variable `progname`, and using that variable in diagnostics. * font/scripts/gendesc.sh: * font/scripts/genfonts.sh: Do it. --- ChangeLog | 7 +++++++ font/scripts/gendesc.sh | 3 ++- font/scripts/genfonts.sh | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57b984fb2..cc38454fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-07-14 G. Branden Robinson <g.branden.robin...@gmail.com> + + * font/scripts/gendesc.sh: + * font/scripts/genfonts.sh: Prevent recurrence of previous + problem by computing the basename of the script file, storing it + a variable `progname`, and using that variable in diagnostics. + 2025-07-14 G. Branden Robinson <g.branden.robin...@gmail.com> * font/scripts/gendesc.sh: Fix copy and paste error causing diff --git a/font/scripts/gendesc.sh b/font/scripts/gendesc.sh index 0c0a80835..db8ec7390 100755 --- a/font/scripts/gendesc.sh +++ b/font/scripts/gendesc.sh @@ -1,8 +1,9 @@ #!/bin/sh # Usage: gendesc.sh <input .proto> <RES> <CPI> <LPI> <list of fonts> +progname=${0##*/} if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4" || \ test -z "$5"; then - echo "gendesc.sh: missing parameter"; exit 255; + echo "$progname: missing parameter"; exit 255; fi INPUT=$1 RES=$2 diff --git a/font/scripts/genfonts.sh b/font/scripts/genfonts.sh index ad45612cf..a5ff3025c 100755 --- a/font/scripts/genfonts.sh +++ b/font/scripts/genfonts.sh @@ -1,8 +1,9 @@ #!/bin/sh -xv # Usage: # genfonts.sh <input .proto file> <RES> <CPI> <FONT name> +progname=${0##*/} if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4"; then - echo "genfonts.sh: missing parameter"; exit 255; + echo "$progname: missing parameter"; exit 255; fi INPUT=$1 _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit