diff options
author | 2023-06-30 11:24:14 +0200 | |
---|---|---|
committer | 2023-08-26 07:29:02 +0200 | |
commit | 84304f7b8fa1706c6aa046cb84be4fa33c46d9f8 (patch) | |
tree | 5a3ceab29b07a791cac666fe560e847160101bd5 /eclass-writing | |
parent | general-concepts/use-flags: Clarification about compiler flags (diff) | |
download | devmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.tar.gz devmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.tar.bz2 devmanual-84304f7b8fa1706c6aa046cb84be4fa33c46d9f8.zip |
eclass-writing: Use underscores for function names in the example
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass-writing')
-rw-r--r-- | eclass-writing/text.xml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml index ef58547..2b3033e 100644 --- a/eclass-writing/text.xml +++ b/eclass-writing/text.xml @@ -795,34 +795,35 @@ BDEPEND=">=sys-devel/jmake-2" # @DESCRIPTION: # Passes all arguments through to the appropriate "jmake configure" # command. -jmake-configure() { +jmake_configure() { jmake configure --prefix=/usr "$@" } # @FUNCTION: jmake_src_configure # @USAGE: [additional-args] # @DESCRIPTION: -# Calls jmake-configure() to configure a jmake project. Passes all +# Calls jmake_configure() to configure a jmake project. Passes all # arguments through to the appropriate "jmake configure" command. jmake_src_configure() { - jmake-configure "$@" || die "configure failed" + jmake_configure "$@" || die "configure failed" } -# @FUNCTION: jmake-build +# @FUNCTION: jmake_build # @USAGE: [additional-args] # @DESCRIPTION: # First builds all dependencies, and then passes through its arguments # to the appropriate "jmake build" command. -jmake-build() { +jmake_build() { jmake dep && jmake build "$@" } # @FUNCTION: jmake_src_compile # @DESCRIPTION: -# Calls jmake-build() to compile a jmake project. +# Calls jmake_build() to compile a jmake project. jmake_src_compile() { - jmake-build || die "build failed" + jmake_build || die "build failed" } + fi EXPORT_FUNCTIONS src_configure src_compile |