summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-28 07:54:04 +0100
committerSam James <sam@gentoo.org>2021-03-31 03:02:28 +0100
commit0766662706d8be50b3311919b9f9fbad6ce30ce6 (patch)
tree1c9480579161970b31af0e2de836930e508640ba /eclass/fixheadtails.eclass
parentmultilib-build.eclass: drop obsolete EAPI 4 comment (diff)
downloadgentoo-0766662706d8be50b3311919b9f9fbad6ce30ce6.tar.gz
gentoo-0766662706d8be50b3311919b9f9fbad6ce30ce6.tar.bz2
gentoo-0766662706d8be50b3311919b9f9fbad6ce30ce6.zip
fixheadtails.eclass: document _do_sed_fix, mark @INTERNAL
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/fixheadtails.eclass')
-rw-r--r--eclass/fixheadtails.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/fixheadtails.eclass b/eclass/fixheadtails.eclass
index 475b182843a..e5e5ae1069c 100644
--- a/eclass/fixheadtails.eclass
+++ b/eclass/fixheadtails.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: fixheadtails.eclass
@@ -8,6 +8,12 @@
# Original author John Mylchreest <johnm@gentoo.org>
# @BLURB: functions to replace obsolete head/tail with POSIX compliant ones
+# @FUNCTION: _do_sed_fix
+# @INTERNAL
+# @USAGE: <file>
+# @DESCRIPTION:
+# Apply series of regular expressions via sed to file
+# to make head/tail compliant
_do_sed_fix() {
einfo " - fixed $1"
sed -i \