dot

packages and services management
Log | Files | Refs | README

commit 6513619bcfa7ab25b58eeffcc5c7bfd7c71f777e
parent b99282722ea66bb2423b0fa4deec04f635de6972
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Fri, 25 Aug 2017 08:40:20 +0200

rc: ROOT -> SYSROOT

Diffstat:
Mrc | 37+++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)

diff --git a/rc b/rc @@ -1,31 +1,32 @@ -export ROOT="$HOME" +export SYSROOT="$HOME/usr" -export PATH="$ROOT/bin:$PATH" -export MANPATH="$ROOT/man:$MANPATH" -export C_INCLUDE_PATH="$ROOT/include" -export LIBRARY_PATH="$ROOT/.local/lib" -export LD_LIBRARY_PATH="$ROOT/lib:$LD_LIBRARY_PATH" +export PATH="$SYSROOT/bin:$PATH" +export MANPATH="$SYSROOT/man:$MANPATH" +export C_INCLUDE_PATH="$SYSROOT/include" +export LIBRARY_PATH="$SYSROOT/.local/lib" +export LD_LIBRARY_PATH="$SYSROOT/lib:$LD_LIBRARY_PATH" -for bin in "$ROOT/pkg"/*/*/bin +for bin in "$SYSROOT/pkg"/*/*/bin do [ -d "$bin" ] && export PATH="$bin:$PATH" done -for profile in "$ROOT/pkg"/*/*/profile +for profile in "$SYSROOT/pkg"/*/*/profile do [ -f "$profile" ] && . "$profile" done -export XDG_DATA_HOME="$ROOT/share" -export XDG_DATA_DIRS="$ROOT/share" -export XDG_CONFIG_HOME="$ROOT/etc" -export XDG_CONFIG_DIRS="$ROOT/etc" +export XDG_DATA_HOME="$SYSROOT/share" +export XDG_DATA_DIRS="$SYSROOT/share" -export XDG_CACHE_HOME="$ROOT/var/cache" -export XDG_DOWNLOAD_DIR="$ROOT/var/tmp" +export XDG_CONFIG_HOME="$SYSROOT/etc" +export XDG_CONFIG_DIRS="$SYSROOT/etc" -export XDG_MUSIC_DIR="$ROOT/lib/music" -export XDG_VIDEOS_DIR="$ROOT/lib/videos" -export XDG_PICTURES_DIR="$ROOT/lib/images" -export XDG_DOCUMENTS_DIR="$ROOT/lib/documents" +export XDG_CACHE_HOME="$SYSROOT/var/cache" +export XDG_DOWNLOAD_DIR="$SYSROOT/var/tmp" + +export XDG_MUSIC_DIR="$SYSROOT/lib/music" +export XDG_VIDEOS_DIR="$SYSROOT/lib/videos" +export XDG_PICTURES_DIR="$SYSROOT/lib/images" +export XDG_DOCUMENTS_DIR="$SYSROOT/lib/documents" export XDG_DESKTOP_DIR="/tmp" export XDG_TEMPLATES_DIR="/tmp"