summaryrefslogtreecommitdiff
path: root/bin/dosed
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-20 06:04:19 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-20 06:04:19 +0000
commit29d64fe19029128d1c056074a86b230a04f151b6 (patch)
tree691ed024ab53d95ff26ef84c906656aec5cb33c2 /bin/dosed
parentRemove special case of --emptytree in depgraph.display(). Thanks to Jason St... (diff)
downloadportage-multirepo-29d64fe19029128d1c056074a86b230a04f151b6.tar.gz
portage-multirepo-29d64fe19029128d1c056074a86b230a04f151b6.tar.bz2
portage-multirepo-29d64fe19029128d1c056074a86b230a04f151b6.zip
Make dosed use sed -i instead of a temp file. Thanks to Tim Cera for this patch from bug #152017.
svn path=/main/trunk/; revision=4762
Diffstat (limited to 'bin/dosed')
-rwxr-xr-xbin/dosed4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/dosed b/bin/dosed
index 20f7ba28..e14194b2 100755
--- a/bin/dosed
+++ b/bin/dosed
@@ -9,9 +9,7 @@ for x in "$@" ; do
y="${D}${x}"
if [ -e "${y}" ] ; then
if [ -f "${y}" ] ; then
- mysrc="${T}/${y##*/}"
- cp "${y}" "${mysrc}"
- sed -e "${mysed}" "${mysrc}" > "${y}"
+ sed -ie "${mysed}" "${y}"
else
echo "${y} is not a regular file!"
exit 1