git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d524082
)
s4-install: old systems don't have sed -i
author
Andrew Tridgell
<tridge@samba.org>
Fri, 27 Nov 2009 08:58:00 +0000
(19:58 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 27 Nov 2009 08:58:29 +0000
(19:58 +1100)
surprisingly, this failure came from SLES8. I didn't realise that the
-i option was so new!
source4/script/installmisc.sh
patch
|
blob
|
history
diff --git
a/source4/script/installmisc.sh
b/source4/script/installmisc.sh
index 7851d1f77da4ff9641bec22425dff1ee3e197910..cb618628b091c030ae351792e6e1190e2c570786 100755
(executable)
--- a/
source4/script/installmisc.sh
+++ b/
source4/script/installmisc.sh
@@
-18,7
+18,10
@@
cd $SRCDIR || exit 1
fix_python_path() {
f="$1"
egrep 'sys.path.insert.*bin/python' $f > /dev/null && {
- sed -i "s|\(sys.path.insert.*\)bin/python\(.*\)$|\1$PYTHONDIR\2|g" $f || exit 1
+ # old systems don't have sed -i :-(
+ sed "s|\(sys.path.insert.*\)bin/python\(.*\)$|\1$PYTHONDIR\2|g" < $f > $f.$$ || exit 1
+ mv -f $f.$$ $f || exit 1
+ chmod +x $f
}
}