22 lines
603 B
Plaintext
22 lines
603 B
Plaintext
![]() |
#!/bin/bash
|
||
|
|
||
|
export GNOME_PREFIX=/opt/gnome
|
||
|
export LIBGLADE_EXE_PREFIX=${GNOME_PREFIX}
|
||
|
|
||
|
if [ $EUID -eq 0 ]; then
|
||
|
export PATH="${PATH}:${GNOME_PREFIX}/sbin"
|
||
|
fi
|
||
|
export PATH="${PATH}:${GNOME_PREFIX}/bin"
|
||
|
|
||
|
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${GNOME_PREFIX}/lib/pkgconfig"
|
||
|
export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${GNOME_PREFIX}/share"
|
||
|
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg"
|
||
|
|
||
|
if ! grep -q "/opt/gnome/lib"; then
|
||
|
echo "/opt/gnome/lib" >>/etc/ld.so.conf
|
||
|
if -d /lib64; then
|
||
|
echo "/opt/gnome/lib64" >>/etc/ld.so.conf
|
||
|
fi
|
||
|
fi
|
||
|
|