Skip to content

Commit

Permalink
eclass-writing: Use underscores for function names in the example
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Aug 26, 2023
1 parent 29978d0 commit 84304f7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions eclass-writing/text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -795,34 +795,35 @@ BDEPEND="&gt;=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 &amp;&amp; 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
Expand Down

0 comments on commit 84304f7

Please sign in to comment.