diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-11-04 08:00:26 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-11-04 08:00:26 +0000 |
commit | d61cd2e87ed0fb27e0777a59d713ab647511691a (patch) | |
tree | f61b68971998b0921b57e1660073461585b4550d /sys-apps | |
parent | Added entries for updated Netscape/Navigator portages. (diff) | |
download | gentoo-2-d61cd2e87ed0fb27e0777a59d713ab647511691a.tar.gz gentoo-2-d61cd2e87ed0fb27e0777a59d713ab647511691a.tar.bz2 gentoo-2-d61cd2e87ed0fb27e0777a59d713ab647511691a.zip |
*** empty log message ***
Diffstat (limited to 'sys-apps')
-rwxr-xr-x | sys-apps/portage/files/bin/dosed | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-apps/portage/files/bin/dosed b/sys-apps/portage/files/bin/dosed new file mode 100755 index 000000000000..7f12383ab145 --- /dev/null +++ b/sys-apps/portage/files/bin/dosed @@ -0,0 +1,23 @@ +#!/bin/sh + + +mysed="s:${D}::" + +for x in "$@" +do + if [ -a "${x}" ] + then + echo ${x} + if [ -f "${x}" ] + then + mysrc=${T}/`/usr/bin/basename ${x}` + cp ${x} ${mysrc} + sed -e "${mysed}" ${mysrc} > ${x} + else + echo "${x} is not a regular file!" + return + fi + else + mysed=${x} + fi +done |