From 3511984027aa0890572e4a1156b548faec358f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 24 Jun 2018 17:23:36 +0200 Subject: Allow no base install This is required for subpackages creation. Base files would otherwise be included in all subpackages. --- install | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install b/install index 2305d3f..55d3cfd 100755 --- a/install +++ b/install @@ -3,6 +3,7 @@ set -e cd "$(dirname "$0")" I_PREFIX=/ +U_BASE=true U_BASH=false U_ZSH=false @@ -18,6 +19,8 @@ while [ $# -gt 0 ]; do echo " Install bash configuration" echo " -z, --zsh" echo " Install zsh configuration" + echo " --no-base" + echo " Do not install base only bash or zsh is installed" echo " --prefix PATH" echo " Install prefix (in default set to /)" exit 0 @@ -28,6 +31,9 @@ while [ $# -gt 0 ]; do --zsh|-z) U_ZSH=true ;; + --no-base) + U_BASE=false + ;; --prefix) shift I_PREFIX="$1" @@ -41,8 +47,10 @@ while [ $# -gt 0 ]; do done # Install shellrc -mkdir -p "$I_PREFIX/etc" -cp -r shellrc.d "$I_PREFIX/etc/shellrc.d" +if $U_BASE; then + mkdir -p "$I_PREFIX/etc" + cp -r shellrc.d "$I_PREFIX/etc/shellrc.d" +fi if $U_BASH; then mkdir -p "$I_PREFIX/etc/bash" -- cgit v1.2.3