summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-09-19 02:37:06 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-09-19 02:37:06 +0200
commit0238bdb00116c7fce43dd982ba69c1d6ef9ebc42 (patch)
tree67969a7b638d27aed0f011d56793fbf275c09e3b /bin
parent217d2b5948b23a87efa3c617fdf213127e5acc15 (diff)
downloadgeiser-chez-0238bdb00116c7fce43dd982ba69c1d6ef9ebc42.tar.gz
geiser-chez-0238bdb00116c7fce43dd982ba69c1d6ef9ebc42.tar.bz2
Paving the way to MELPA (and simpler ELPA generation)
Following the discussion in GitHub, i'm adding an alternative scheme path to geiser.el as well as ##autoload cookies. As a first benefit, this simplifies a bit the elpa target, after playing a similar path trick in bin/geiser-racket.sh. Things should be almost ready for creating a MELPA recipe.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/geiser-racket.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/geiser-racket.sh b/bin/geiser-racket.sh
index 09a92a8..4ac7712 100755
--- a/bin/geiser-racket.sh
+++ b/bin/geiser-racket.sh
@@ -1,6 +1,9 @@
#!/bin/bash
#|
-top="$(dirname $0)/../scheme"
+topdir=$(dirname $0)
+elpa_scheme=$topdir/scheme
+in_scheme=$topdir/../scheme
+top=$(if [ -d $elpa_scheme ]; then echo $elpa_scheme; else echo $in_scheme; fi)
exec racket -i -S "$top/racket" -l errortrace -cu "$0" ${1+"$@"}
|#