Commits

Andriy Kornatskyy committed 261b38b

Created general bootstrap-make sceleton.

Comments (0)

Files changed (6)

+
+DOTDIR=`pwd`
+
+install: install-vim
+
+install-csh:
+	rm -f ~/.cshrc
+	ln -s $(DOTDIR)/csh/cshrc ~/.cshrc
+
+install-sh:
+	rm -f ~/.shrc
+	ln -s $(DOTDIR)/sh/shrc ~/.shrc
+
+install-vim:
+	rm -rf ~/.vim ~/.vimrc
+	ln -s $(DOTDIR)/vim ~/.vim
+	ln -s $(DOTDIR)/vim/vimrc ~/.vimrc
+
+A collection of dot files.
+
+Bootstrap
+---------
+
+Here is how you can bootstrap:
+
+* Debian::
+
+    wget -qO - https://bitbucket.org/akorn/dotfiles/raw/tip/bootstrap.sh --no-check-certificate | sh
+
+* FreeBSD::
+
+    fetch -qo - https://bitbucket.org/akorn/dotfiles/raw/tip/bootstrap.sh | sh
+#!/bin/sh
+
+platform=`uname`
+
+if [ "`id -u`" = "0" ] ; then
+    if [ $platform = 'Linux' ]; then
+
+        cat <<EOF > /etc/apt/sources.list
+
+deb http://ftp.debian.org/debian/ testing main contrib non-free
+#deb-src http://ftp.debian.org/debian/ testing main contrib non-free
+
+deb http://security.debian.org/ testing/updates main contrib non-free
+#deb-src http://security.debian.org/ testing/updates main contrib non-free
+EOF
+
+        apt-get -q update
+        apt-get -yq dist-upgrade
+	    apt-get -y install make less build-essential python mercurial \
+            python-virtualenv vim-nox
+
+    elif [ $platform = 'FreeBSD' ]; then
+
+        # http://mindref.blogspot.com/2012/08/freebsd-makeconf.html
+        # http://mindref.blogspot.com/2012/08/freebsd-csup-update.html
+
+        make -DBATCH install clean -sC /usr/ports/ports-mgmt/portmaster
+        make -DEXTRA_ENCODINGS -DBATCH install clean -sC /usr/ports/converters/libiconv
+        make -DWITHOUT_EXAMPLES -DBATCH install clean -sC /usr/ports/lang/python27
+        make install clean -sC /usr/ports/devel/mercurial
+        make install clean -sC /usr/ports/devel/py-virtualenv
+        make -DWITH_PYTHON -DWITHOUT_X11 -DEXUBERANT_CTAGS install clean -sC /usr/ports/editors/vim
+
+    fi
+fi
+
+cat <<EOF > ~/.hgrc
+[hostfingerprints]
+bitbucket.org = 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
+
+[ui]
+username = Andriy Kornatskyy <andriy.kornatskyy@live.com>
+
+[auth]
+bitbucket.org.prefix = bitbucket.org
+bitbucket.org.username = akorn
+
+[extensions]
+color =
+graphlog =
+EOF
+
+hg clone https://bitbucket.org/akorn/dotfiles dotfiles
+make install -sC dotfiles
Empty file added.
Empty file added.
Empty file added.