projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9c27ec
)
Make dosed use sed -i instead of a temp file. Thanks to Tim Cera for this patch...
author
Zac Medico
<zmedico@gentoo.org>
Fri, 20 Oct 2006 06:04:19 +0000
(06:04 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 20 Oct 2006 06:04:19 +0000
(06:04 -0000)
svn path=/main/trunk/; revision=4762
bin/dosed
patch
|
blob
|
history
diff --git
a/bin/dosed
b/bin/dosed
index 20f7ba281639966c3944fcb35ca67508b4ca3de6..e14194b2828c9635865bb6d06cfffa4f3f2b5db5 100755
(executable)
--- 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