esac
done
-e() { echo "$@"; "$@"; }
+e() { echo "$*"; "$@"; }
export CFLAGS="-Og -g3"
dir=/a/opt/emacs-`distro-name``debian-archive`
if [[ ! -e $dir ]]; then
- cp -r /a/opt/emacs $dir
+ e cp -r /a/opt/emacs $dir
recompile=true
fi
-cd $dir
+e cd $dir
if $recompile; then
# todo, consider when this should be uncommented
logq emacs --batch -l ~/.emacs.d/init.el -l ~/.emacs.d/compile-init-dir.el
-# not keeping up with the latest org-mode development anymore
-#~/bin/buildscripts/org-mode
+# as of 01-2017, built-in org mode has a bug that
+# org-edit-src-exit does not get bound, so using latest
+~/bin/buildscripts/org-mode
if $update; then
logq pi bzr
else
logq pi texinfo-tex
fi
-rm -rf !(.git)
-i checkout -f errbuff
+# rm -rf !(.git)
+# i checkout -f errbuff
if [[ $1 == -u ]]; then
git fetch
# org-learn is a dependency of org-drill
dd of=local.mk <<'EOF'
ORG_ADD_CONTRIB = org-drill org-learn
-EMACS = /usr/bin/emacs
+EMACS = /usr/local/bin/emacs
prefix = /a/c/.emacs.d
EOF
-rm -rf /a/c/.emacs.d/emacs
+
+d=/a/c/.emacs.d/emacs
+if [[ -e $d ]]; then
+ d2=${d}-disabled
+ rm -rf $d2
+ mv $d $d2
+fi
logq make install