summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2017-04-02 12:06:28 +0200
committerjohannst <stoelp@eit.uni-kl.de>2017-04-02 12:06:28 +0200
commit75e72bfaddb16c6b9deb89c8b76a4267ee8c9436 (patch)
tree298aaba947562652cf4f981f684b05542fc95a6e /install
parent9956a6a94c164d1680c6dc450d370f6b38442bfa (diff)
downloaddotfiles-75e72bfaddb16c6b9deb89c8b76a4267ee8c9436.tar.gz
dotfiles-75e72bfaddb16c6b9deb89c8b76a4267ee8c9436.zip
added gdbinit + installer; install default false for every config file
Diffstat (limited to 'install')
-rwxr-xr-xinstall15
1 files changed, 15 insertions, 0 deletions
diff --git a/install b/install
index 64116ea..d47c33e 100755
--- a/install
+++ b/install
@@ -7,6 +7,7 @@ gInstallConfigFile=install.config
#"<config_tag>:<dep_binary>:<installer_fct_name>"
gToolsConfig=(
"bashrc:bash:bashrcInstaller"
+"gdb:cgdb:gdbrcInstaller"
"cgdb:cgdb:cgdbrcInstaller"
"conkyrc:conky:conkyrcInstaller"
"gitconfig:git:gitConfigInstaller"
@@ -33,6 +34,20 @@ function bashrcInstaller() {
}
#}}}
+#{{{ gdbrcInstaller
+
+function gdbrcInstaller() {
+ local gdbinit=~/.gdbinit
+ touch $gdbinit
+ grep $gMagicNumber $gdbinit > /dev/null 2>&1
+ if [[ $? = 0 ]]; then
+ return
+ fi
+ echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $gdbinit
+ echo -e "source $ABS_BASE_DIR/gdbinit" >> $gdbinit
+}
+
+#}}}
#{{{ cgdbrcInstaller
function cgdbrcInstaller() {