- # autogen is usually only for the first build, assume it works
- logq ./autogen.sh all
- # I tried changing O2 to O3, don't know if it made it faster or slower so I went back to 02.
- # Also, link-time-optimization based on ./INSTALL
-
- # for debugging, use -Og, or -O0 to make debug really correspond to sources
- # dunno why I have had -std=gnu99 in the past
- #CFLAGS='-std=gnu99 -g3 -Og'
- export CFLAGS='-g3 -Og'
- #CFLAGS='-std=gnu99 -g3 -O2' logq ./configure --enable-link-time-optimization
- # on ubuntu 12.04, the above fails, says my c compiler won't work, so intead, just use defaults
- logq ./configure
- logq make -j `nproc` bootstrap
+ nox=false
+ for d in ${dirs[@]}; do
+ if $nox; then
+ # Commented stuff in this block had something to do with ssh / autofs, im not really using nox right now,
+ # so unless I figure out why it was this way, ignore this.
+ # m mkdir -p ${d%/*}
+ m rsync --delete -ra $dir/ $d
+ #
+ # mp=$HOME/.iank/e/e
+ # if mountpoint $mp &>/dev/null; then
+ # m sudo umount $mp
+ # fi
+ # m mkdir -p $mp
+ # m sudo mount -o bind $d $mp
+ # m sudo chown $USER:$USER $mp
+ # m cd $mp
+
+ # instead of $mp above
+ m cd $d
+ else
+ m cd $d
+ fi
+ # todo, consider when this should be uncommented
+ #logq s make uninstall
+ m find ~/.emacs.d/ -name '*.elc' -delete
+
+ # git version
+ if [[ $1 ]]; then
+ m i clean -xxxfd
+ elif $update; then
+ m i fetch
+ m i clean -xxxffd
+ m i reset --hard origin/master
+ m i clean -xxxffd
+ fi
+ # autogen is usually only for the first build, assume it works
+ logq ./autogen.sh all
+ # I tried changing O2 to O3, don't know if it made it faster or slower so I went back to 02.
+ # Also, link-time-optimization based on ./INSTALL
+
+ # for debugging, use -Og, or -O0 to make debug really correspond to sources
+ # dunno why I have had -std=gnu99 in the past
+ #CFLAGS='-std=gnu99 -g3 -Og'
+ export CFLAGS='-g3 -Og'
+ #CFLAGS='-std=gnu99 -g3 -O2' logq ./configure --enable-link-time-optimization
+ # on ubuntu 12.04, the above fails, says my c compiler won't work, so intead, just use defaults
+ if $nox; then
+ # mix of flags from arch and debians build flags
+ # note, youd think we could just run make again, but the
+ # build system isnt smart enough, we have to recompile
+ # from scratch.
+ logq ./configure --without-x --without-sound --without-gsettings --without-gconf
+ ln -s ~/.emacs.d .
+ else
+ logq ./configure
+ fi
+ logq make -j `nproc` bootstrap
+ logq make -j `nproc`
+ if ! $nox; then
+ logq sudo make install
+ # make emacs always work for root
+ sudo /a/exe/lnf /usr/local/bin/emacs /usr/bin
+ fi
+ nox=true
+ done
+else
+ m cd ${dirs[0]}
+ logq sudo make install
+ # make emacs always work for root
+ m sudo /a/exe/lnf /usr/local/bin/emacs /usr/bin