Using PROGNAME in gtkdoc.sh as well

This commit is contained in:
Pierre Pronchery 2014-11-12 02:33:01 +01:00
parent 94d445eafd
commit a54cc16b1e

View File

@ -26,7 +26,7 @@
#variables
PREFIX="/usr/local"
[ -f "../config.sh" ] && . "../config.sh"
PROGNAME="gtkdoc.sh"
#executables
DEBUG="_debug"
GTKDOC_FIXXREF="gtkdoc-fixxref"
@ -39,6 +39,8 @@ MKDIR="mkdir -m 0755 -p"
RM="rm -f"
TOUCH="touch"
[ -f "../config.sh" ] && . "../config.sh"
#functions
#debug
@ -52,7 +54,7 @@ _debug()
#error
_error()
{
echo "gtkdoc.sh: $@" 1>&2
echo "$PROGNAME: $@" 1>&2
return 2
}
@ -60,7 +62,7 @@ _error()
#usage
_usage()
{
echo "Usage: gtkdoc.sh [-c|-i|-u][-P prefix] target..." 1>&2
echo "Usage: $PROGNAME [-c|-i|-u][-P prefix] target..." 1>&2
return 1
}