xinit: remove sed -i

This commit is contained in:
Dylan Araps 2021-07-03 20:31:18 +00:00
parent 14419f6fb2
commit a89f38df91
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -1,5 +1,10 @@
#!/bin/sh -e
# Make xauth optional at runtime.
cmd='command -v xauth >/dev/null \&\&'
sed "s#\(enable_xauth\)=1#$cmd&||\1=0#" startx.cpp > _
mv -f _ startx.cpp
./configure \
--prefix=/usr \
--with-xinitdir=/etc/X11/xinit
@ -7,6 +12,3 @@
make
make DESTDIR="$1" install
# Make xauth optional.
sed -i 's#enable_xauth=1#command -v xauth >/dev/null \&\&&||enable_xauth=0#' \
"$1/usr/bin/startx"