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