Commits

David Jones committed 46ef24f

working on scripts

Comments (0)

Files changed (2)

-#!/bin/bash
+#!/bin/bash -x
 
 REPO_DIR=$HOME/repos
 
     fi
 }
 
-oh_my_zsh=$REPO_DIR/oh-my-zsh
+from_bitbucket_hg() {
+    name=$1
+    if [[ -d $REPO_DIR/$name ]]; then
+	echo "$name exists"
+    else
+	echo "getting $name from bitbucket"
+	hg clone ssh://hg@bitbucket.org/dmj111/$name $REPO_DIR/$name
+    fi
+}
+
+
 
 from_github oh-my-zsh
 from_github oh-my-zsh-custom
 
 
+oh_my_zsh=$REPO_DIR/oh-my-zsh
+
 if [[ -d $oh_my_zsh/custom ]]; then
     mv $oh_my_zsh/custom $oh_my_zsh/custom.old
-    ln -s $oh_my_zsh_custom $oh_my_zsh/custom
 fi
 
-
-ln -sf $oh_my_zsh_custom/config/zshrc $HOME/.zshrc
-ln -sf $oh_my_zsh_custom/config/zshenv $HOME/.zshenv
+ln -sf $REPO_DIR/oh-my-zsh-custom $oh_my_zsh/custom
+ln -sf $oh_my_zsh/custom/config/zshrc $HOME/.zshrc
+ln -sf $oh_my_zsh/custom/config/zshenv $HOME/.zshenv
 ln -sf $oh_my_zsh $HOME/.oh-my-zsh
 
 
+
+
 # Emacs setup
+from_bitbucket_hg emacs2
+ln -sf $REPO_DIR/emacs2 $HOME/.emacs.d
+
+if [[ ! -d $REPO_DIR/emacs2/local ]]; then
+    mkdir $REPO_DIR/emacs2/local
+fi
 
-from_github prelude
+if [[ ! -f $REPO_DIR/emacs2/local/custom.el ]]; then
+    touch $REPO_DIR/emacs2/local/custom.el
+fi
+#!/bin/bash
 
 
 apt-get install make
 apt-get install mercurial
 apt-get install git
 apt-get install keychain gnupg-agent
+apt-get install python3
+apt-get install python3-pip binutils-doc debian-keyring gcc-4.7-doc libstdc++6-4.7-dbg \
+    gcc-multilib autoconf  automake1.9 libtool flex bison gdb \
+    gcc-doc gcc-4.7-multilib libmudflap0-4.7-dev gcc-4.7-locales libgcc1-dbg \
+    libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold \
+    glibc-doc libstdc++6-4.7-doc
+
+apt-get install  autoconf2.13 autoconf-archive gnu-standards \
+    autoconf-doc gettext automake1.9-doc bison-doc \
+    g++-multilib g++-4.7-multilib lib64mudflap0 libx32mudflap0 \
+    gdb-doc gdbserver libtool-doc \
+    automake
+
+apt-get install gfortran gfortran-doc gfortran-multilib
+
+# doc-base?
+
+# gcj