diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-10-22 12:36:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-10-22 12:36:02 +0000 |
commit | 90a35db9da5315af4aea4b4a44276f030f1e6325 (patch) | |
tree | 86733d8bb120be9e2f4df942491fee71d6af8ff4 /sys-process/supervise-scripts/files | |
parent | Cleanup. (diff) | |
download | gentoo-2-90a35db9da5315af4aea4b4a44276f030f1e6325.tar.gz gentoo-2-90a35db9da5315af4aea4b4a44276f030f1e6325.tar.bz2 gentoo-2-90a35db9da5315af4aea4b4a44276f030f1e6325.zip |
Fixup head/tail stuff missed by the eclass #152307 by Richard Scott.
(Portage version: 2.1.2_pre3-r5)
Diffstat (limited to 'sys-process/supervise-scripts/files')
-rw-r--r-- | sys-process/supervise-scripts/files/supervise-scripts-3.5-head-tails-syntax.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-process/supervise-scripts/files/supervise-scripts-3.5-head-tails-syntax.patch b/sys-process/supervise-scripts/files/supervise-scripts-3.5-head-tails-syntax.patch new file mode 100644 index 000000000000..6a38a544724a --- /dev/null +++ b/sys-process/supervise-scripts/files/supervise-scripts-3.5-head-tails-syntax.patch @@ -0,0 +1,19 @@ +fixheadtails.eclass can't handle shell scripts so we need to fix ourselves + +http://bugs.gentoo.org/152307 + +--- svscan-add-to-inittab.in ++++ svscan-add-to-inittab.in +@@ -53,10 +53,10 @@ + + # Splice the new lines into the old file + { +- catit | head -$(($lineno-1)) ++ catit | head -n $(($lineno-1)) + echo "SV:2345:respawn:$conf_bin/svscan-start /service" + echo "SX:S016:wait:$conf_bin/svscan-stopall /service" +- catit | tail +$lineno ++ catit | tail -n +$lineno + } >"$tmpfile" + + # And move it over the existing file |