use 'macosx.sh editsysconf' to install sysconf

This commit is contained in:
Haoyang Wang
2015-12-12 08:35:13 -08:00
parent fd6d69dd9f
commit c431f61930
4 changed files with 15 additions and 11 deletions

View File

@@ -92,12 +92,16 @@ xgroup2)
;;
xeditsysconf)
sed 's/^GDBPATH/#GDBPATH/' $2 \
| sed 's/^GREPPATH=\/bin\/grep/GREPPATH=\/usr\/bin\/grep/' \
| sed 's/^PANICTRACE_GDB=[12]/PANICTRACE_GDB=0/' \
| sed 's/^#OPTIONS=.*/&\
src=$2
dest=$3
if ! [ -e $dest ]; then
sed 's/^GDBPATH/#GDBPATH/' $src \
| sed 's/^GREPPATH=\/bin\/grep/GREPPATH=\/usr\/bin\/grep/' \
| sed 's/^PANICTRACE_GDB=[12]/PANICTRACE_GDB=0/' \
| sed 's/^#OPTIONS=.*/&\
OPTIONS=!use_darkgray/' \
> $3
> $dest
fi
;;
#% dscl localhost -read /Search/Groups/wheel