diff options
author | 2017-12-21 19:12:40 -0500 | |
---|---|---|
committer | 2018-01-03 00:17:11 -0500 | |
commit | 8c24be3239906196b973ff14197650e7702e953c (patch) | |
tree | bbf3488a56dd83b525e37fc40547ba4090c71be9 /eclass-writing | |
parent | ebuild-maintenance: remove the Gentoo-Bug tag in the package removal subsection (diff) | |
download | devmanual-8c24be3239906196b973ff14197650e7702e953c.tar.gz devmanual-8c24be3239906196b973ff14197650e7702e953c.tar.bz2 devmanual-8c24be3239906196b973ff14197650e7702e953c.zip |
Change the indentation for ebuild <codesample/> snippets from spaces to tabs
Diffstat (limited to 'eclass-writing')
-rw-r--r-- | eclass-writing/text.xml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml index 9064616..db7d9f1 100644 --- a/eclass-writing/text.xml +++ b/eclass-writing/text.xml @@ -627,11 +627,11 @@ a single function, <c>domacosapp</c>. # [new-file] is given, it will be used as the new (installed) name of # the file. Otherwise <app-file> is installed as-is. domacosapp() { - [[ -z "${1}" ]] && die "usage: domacosapp <file> [new file]" - if use ppc-macos ; then - insinto /Applications - newins "$1" "${2:-${1}}" || die "Failed to install ${1}" - fi + [[ -z "${1}" ]] && die "usage: domacosapp <file> [new file]" + if use ppc-macos ; then + insinto /Applications + newins "$1" "${2:-${1}}" || die "Failed to install ${1}" + fi } </codesample> @@ -667,7 +667,7 @@ eclass-defined defaults <d/> for example, say we had <c>fnord.eclass</c>: EXPORT_FUNCTIONS src_compile fnord_src_compile() { - do_stuff || die + do_stuff || die } </codesample> @@ -679,9 +679,9 @@ Then an ebuild could do this: inherit fnord.eclass src_compile() { - do_pre_stuff || die - fnord_src_compile - do_post_stuff || die + do_pre_stuff || die + fnord_src_compile + do_post_stuff || die } </codesample> @@ -722,7 +722,7 @@ DEPEND=">=sys-devel/jmake-2" # Passes all arguments through to the appropriate "jmake configure" # command. jmake-configure() { - jmake configure --prefix=/usr "$@" + jmake configure --prefix=/usr "$@" } # @FUNCTION: jmake-build @@ -731,15 +731,15 @@ jmake-configure() { # First builds all dependencies, and then passes through its arguments # to the appropriate "jmake build" command. jmake-build() { - jmake dep && jmake build "$@" + jmake dep && jmake build "$@" } # @FUNCTION: jmake-src_compile # @DESCRIPTION: # Calls jmake-configure() and jmake-build() to compile a jmake project. jmake_src_compile() { - jmake-configure || die "configure failed" - jmake-build || die "build failed" + jmake-configure || die "configure failed" + jmake-build || die "build failed" } </codesample> @@ -769,8 +769,8 @@ for an eclass to invoke die from the global scope. For example: # @BLURB: Calls die when used with an invalid EAPI. case ${EAPI:-0} in - 0) die "this eclass doesn't support EAPI 0" ;; - *) ;; + 0) die "this eclass doesn't support EAPI 0" ;; + *) ;; esac </codesample> </body> |