dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 8cc3ddf5c7c7cb6d93fa3ce035acbfa9e719b125
parent a7f8c529917299856b5604178c635b36bb048b6b
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  1 May 2017 23:44:21 +0000

.bin/emacs-build (target install): insert deb-src only if needed.

Diffstat:
.bin/emacs-build | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.bin/emacs-build b/.bin/emacs-build @@ -26,8 +26,9 @@ if [ "$1" = "bootstrap" ]; then /root/$SCRIPT install elif [ "$1" = "install" ]; then echo 'installing paraphernalia in container' - echo "deb-src http://deb.debian.org/debian testing main" >> \ - /etc/apt/sources.list + F='/etc/apt/sources.list' && \ + [ `grep deb-src $F | wc -l` = '0' ] && \ + echo 'deb-src http://deb.debian.org/debian testing main' >> $F apt-get update -y apt-get install -y build-essential libtiff5-dev libgtk-3-dev \ libxpm-dev libgif-dev libgnutls28-dev \