dot

packages and services management
Log | Files | Refs | README

commit e6ecba68b3fdbb605a64f1712194f7cf2f0b3a14
parent a54b3503190ec988ddd2e2be57a97d08330458c0
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Tue, 25 Jul 2017 09:23:03 +0200

rc -> profile  shell/rc -> shell/profile

Also modified the names in the [A-Z]* scripts

There is no more need to source shell/profile explicitely as it is
handled by profile directly (sourcing all */profile)

Diffstat:
MBUILD | 2+-
MCONFIG | 2+-
MDOWNLOAD | 2+-
MINSTALL | 2+-
MREADME | 2+-
MREMOVE | 2+-
MSERVICE | 2+-
Rrc -> profile | 0
Mshell/.bashrc | 4++--
Mshell/.mkshrc | 4++--
Mshell/.profile | 4+---
Mshell/.zshrc | 4++--
Rshell/rc -> shell/profile | 0
13 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/BUILD b/BUILD @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" mkdir -p "$OPT/$1" && cd "$OPT/$1" || exit 1 export PREFIX="$PWD" diff --git a/CONFIG b/CONFIG @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" find "$ETC" -path "$ETC/*/.*" | while IFS='' read -r path do diff --git a/DOWNLOAD b/DOWNLOAD @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" read url < "$ETC/$1/url" diff --git a/INSTALL b/INSTALL @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" exit=0 diff --git a/README b/README @@ -21,4 +21,4 @@ And then 'pkg' is (hopefully) installed and running. To be sure: 5. $ ./SERVICE status pkg [words to grep] -$SRC, $OPT, $ROOT, $ETC and $VAR are set in ./rc +$SRC, $OPT, $ROOT, $ETC and $VAR are set in ./profile diff --git a/REMOVE b/REMOVE @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" rm -rf "${OPT:?}/$1" "${SRC:?}/$1" find -L "$ROOT" -type l -exec rm {} + diff --git a/SERVICE b/SERVICE @@ -1,4 +1,4 @@ -. "${0%/*}/rc" +. "${0%/*}/profile" usage() diff --git a/rc b/profile diff --git a/shell/.bashrc b/shell/.bashrc @@ -1 +1 @@ -rc- \ No newline at end of file +profile+ \ No newline at end of file diff --git a/shell/.mkshrc b/shell/.mkshrc @@ -1 +1 @@ -rc- \ No newline at end of file +profile+ \ No newline at end of file diff --git a/shell/.profile b/shell/.profile @@ -1,4 +1,4 @@ -. "$HOME/etc/rc" +. "$HOME/etc/profile" export NAME='Josuah Demangeon' export NICK='josuah' @@ -10,5 +10,3 @@ export LC_ALL='en_US.UTF-8' command -v vim && export EDITOR=vim || export EDITOR=vi command -v less && export PAGER=less || export PAGER=more export VISUAL=$EDITOR MANPAGER=$PAGER - -. "$ETC/shell/rc" diff --git a/shell/.zshrc b/shell/.zshrc @@ -1 +1 @@ -rc- \ No newline at end of file +profile+ \ No newline at end of file diff --git a/shell/rc b/shell/profile