summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-09-06 10:06:27 (GMT)
committer Jaromil <jaromil@dyne.org>2013-09-06 10:06:27 (GMT)
commit34e81ef53c188c5e2da80557cd3afb59e9c92f7a (patch)
treea0a063bbcc5464b885cd9a4c18e2204eb55b8472
parent995db7823a3418f973e4616a6c76c8675a5fe6cd (diff)
refined support for ubuntu
-rwxr-xr-xelisp/compile_on_ubuntu.sh21
-rwxr-xr-xgnu/debian.sh38
-rwxr-xr-xgnu/ubuntu.sh (renamed from gnu/run.sh)3
3 files changed, 61 insertions, 1 deletions
diff --git a/elisp/compile_on_ubuntu.sh b/elisp/compile_on_ubuntu.sh
new file mode 100755
index 0000000..919c724
--- /dev/null
+++ b/elisp/compile_on_ubuntu.sh
@@ -0,0 +1,21 @@
+#!/bin/zsh
+# elisp compiles all files in autorg
+
+AUTORG="`dirname $0 | sed 's/\/elisp$//'`"
+TMP="/tmp/autorg"
+mkdir -p $TMP
+
+files=()
+for i in `find . -name '*.el'`; do files+=($i); done
+
+cat <<EOF > $TMP/.emacs
+(setq default-directory "$HOME" )
+(setq AutOrgRes "$AUTORG/elisp")
+(add-to-list 'load-path AutOrgRes)
+(add-to-list 'load-path "/usr/share/emacs/site-lisp")
+(add-to-list 'load-path "/usr/share/emacs/23/lisp/")
+(require 'autorg)
+EOF
+# EMACSLOADPATH=/usr/share/emacs/site-lisp:/usr/share/emacs/23.4/lisp/:/home/jrml/devel/autorg/elisp/:/home/jrml/devel/autorg/elisp/org-mode/lisp \
+HOME=$TMP emacs \
+ --debug-init --batch -f batch-byte-compile $files
diff --git a/gnu/debian.sh b/gnu/debian.sh
new file mode 100755
index 0000000..9e44632
--- /dev/null
+++ b/gnu/debian.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+EMACS=emacs
+AUTORG="`dirname $0 | sed 's/\/gnu$//'`"
+TMP="/tmp/autorg"
+mkdir -p $TMP
+
+echo "Starting autorg in $AUTORG"
+# generate the emacs initialization
+rm -f $TMP/.emacs
+cat <<EOF > $TMP/.emacs
+(setq default-directory "$HOME" )
+(setq AutOrgRes "$AUTORG/elisp")
+(add-to-list 'load-path AutOrgRes)
+(add-to-list 'load-path (concat AutOrgRes "/org-mode/lisp"))
+(add-to-list 'load-path (concat AutOrgRes "/org-mode/contrib/lisp"))
+(add-to-list 'load-path (concat AutOrgRes "/org-mode/contrib/oldexp"))
+(require 'autorg)
+EOF
+
+# honor user's configuration
+if [ -r $HOME/.emacs ]; then
+ cat $HOME/.emacs >> $TMP/.emacs
+fi
+
+
+export PATH="$PATH:$AUTORG:/usr/texbin"
+export GNUPGHOME="$HOME/.gnupg"
+# export LANG=en_US
+# export LC_CTYPE=UTF-8
+cat <<EOF > $AUTORG/.aspell.conf
+dict-dir $AUTORG/dict
+data-dir $AUTORG/dict
+#add-extra-dicts en
+#add-extra-dicts grc
+home-dir $HOME
+EOF
+HOME=$TMP $EMACS $@
diff --git a/gnu/run.sh b/gnu/ubuntu.sh
index acda6d3..2499882 100755
--- a/gnu/run.sh
+++ b/gnu/ubuntu.sh
@@ -1,4 +1,6 @@
#!/bin/sh
+# launch script for Ubuntu 12.04
+# assuming org-mode is installed
EMACS=emacs
AUTORG="`dirname $0 | sed 's/\/gnu$//'`"
@@ -12,7 +14,6 @@ cat <<EOF > $TMP/.emacs
(setq default-directory "$HOME" )
(setq AutOrgRes "$AUTORG/elisp")
(add-to-list 'load-path AutOrgRes)
-(add-to-list 'load-path "$AUTORG/elisp/org-mode/lisp")
(require 'autorg)
EOF