diff --git a/Makefile b/Makefile index 8f07d22..3714617 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Makefile for autodist -# Copyright (C) 2006-2009 by Silvan Calarco +# Copyright (C) 2006-2014 by Silvan Calarco # PACKAGE = autodist @@ -111,6 +111,8 @@ install-data: @$(INSTALL_SCRIPT) etc/cron.daily/40-autodist-upstream-updates $(DESTDIR)$(sysconfdir)/cron.daily/ @$(INSTALL_SCRIPT) etc/logrotate.d/webbuild $(DESTDIR)$(sysconfdir)/logrotate.d/webbuild @$(INSTALL_DATA) autospec-conf $(DESTDIR)$(pck_statedir)/.autospec + @$(INSTALL_DATA) autodist-bashrc $(DESTDIR)$(pck_statedir)/.bashrc + @$(INSTALL_DATA) autodist-bash_profile $(DESTDIR)$(pck_statedir)/.bash_profile @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.success @touch $(DESTDIR)$(pck_statedir)/template/autoupdate/auto.skip diff --git a/autodist-bash_profile b/autodist-bash_profile new file mode 100644 index 0000000..16c56cd --- /dev/null +++ b/autodist-bash_profile @@ -0,0 +1,14 @@ +# .bash_profile + +# Get the aliases and functions +if [ -f ~/.bashrc ]; then + . ~/.bashrc +fi + +# User specific environment and startup programs +if [ -d $HOME/bin ]; then + PATH=$PATH:$HOME/bin +fi +export PATH + +unset USERNAME diff --git a/autodist-bashrc b/autodist-bashrc new file mode 100644 index 0000000..fca3782 --- /dev/null +++ b/autodist-bashrc @@ -0,0 +1,8 @@ +# .bashrc + +# User specific aliases and functions + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi