forked from kiss-community/repo
xinit: remove sed -i
This commit is contained in:
parent
14419f6fb2
commit
a89f38df91
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh -e
|
#!/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 \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-xinitdir=/etc/X11/xinit
|
--with-xinitdir=/etc/X11/xinit
|
||||||
@ -7,6 +12,3 @@
|
|||||||
make
|
make
|
||||||
make DESTDIR="$1" install
|
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"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user