aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-08-12 18:37:31 +0200
committerKarel Kočí <cynerd@email.cz>2018-08-12 18:37:31 +0200
commita55cffa8b3cbc02e2b021ed25e67203d337c36bb (patch)
tree8ccc7d7fd3a8423af46a77c488511589142fc08b /install
parent8720b8f7bb072a861dcc5b4be1c97b02f0912a9e (diff)
downloadshellrc-a55cffa8b3cbc02e2b021ed25e67203d337c36bb.tar.gz
shellrc-a55cffa8b3cbc02e2b021ed25e67203d337c36bb.tar.bz2
shellrc-a55cffa8b3cbc02e2b021ed25e67203d337c36bb.zip
Move some definitions around and add --desktop optionv0.5.2
Diffstat (limited to 'install')
-rwxr-xr-xinstall17
1 files changed, 14 insertions, 3 deletions
diff --git a/install b/install
index 55d3cfd..422eaf0 100755
--- a/install
+++ b/install
@@ -6,6 +6,7 @@ I_PREFIX=/
U_BASE=true
U_BASH=false
U_ZSH=false
+U_DESKTOP=false
while [ $# -gt 0 ]; do
case "$1" in
@@ -15,12 +16,14 @@ while [ $# -gt 0 ]; do
echo "Options:"
echo " -h, --help"
echo " Print this help text."
+ echo " -d, --desktop"
+ echo " Install desktop specific configuration extensions for shellrc"
echo " -b, --bash"
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 " Do not install base only bash or zsh or desktop is installed"
echo " --prefix PATH"
echo " Install prefix (in default set to /)"
exit 0
@@ -34,6 +37,9 @@ while [ $# -gt 0 ]; do
--no-base)
U_BASE=false
;;
+ -d|--desktop)
+ U_DESKTOP=true
+ ;;
--prefix)
shift
I_PREFIX="$1"
@@ -48,8 +54,13 @@ done
# Install shellrc
if $U_BASE; then
- mkdir -p "$I_PREFIX/etc"
- cp -r shellrc.d "$I_PREFIX/etc/shellrc.d"
+ mkdir -p "$I_PREFIX/etc/shellrc.d"
+ cp -r shellrc.d/. "$I_PREFIX/etc/shellrc.d"
+fi
+
+if $U_DESKTOP; then
+ mkdir -p "$I_PREFIX/etc/shellrc.d"
+ cp -r shellrc.d-desktop/. "$I_PREFIX/etc/shellrc.d"
fi
if $U_BASH; then