aboutsummaryrefslogtreecommitdiffhomepage
path: root/tangle
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-10-13 11:39:50 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commite42bbb962e2b7b1efa05982d284fa45c883edd41 (patch)
tree566612ad085e672b076a17f9416f22cc4d480f4d /tangle
parentsisupod.zip related fixes (diff)
org header cosmetic & maker.org/makefile
Diffstat (limited to 'tangle')
-rwxr-xr-xtangle7
1 files changed, 4 insertions, 3 deletions
diff --git a/tangle b/tangle
index 79b884b..ff290c2 100755
--- a/tangle
+++ b/tangle
@@ -4,9 +4,10 @@
DIR=`pwd`
ORGFILES=""
EMACSLISP=/usr/share/emacs/site-lisp
-ORG_VERSION=20160725
-EMACSLISP_ORG=~/.emacs.d/elpa/org-$($(shell echo $(ORG_VERSION)))
-EMACSLISP_ORG_CONTRIB=~/.emacs.d/elpa/org-plus-contrib-$($(shell echo $(ORG_VERSION)))
+ORG_VER_AVAILABLE=$(shell echo `ls -d ~/.emacs.d/elpa/org-???????? | cut -d '-' -f2`)
+EMACSLISP_ORG=~/.emacs.d/elpa/org-$($(shell echo $(ORG_VER_AVAILABLE)))
+ORG_CONTRIB_VER_AVAILABLE=$(shell echo `ls -d ~/.emacs.d/elpa/org-plus-???????? | cut -d '-' -f2`)
+EMACSLISP_ORG_CONTRIB=~/.emacs.d/elpa/org-plus-contrib-$($(shell echo $(ORG_CONTRIB_VER_AVAILABLE)))
# wrap each argument in the code required to call tangle on it
for i in $@; do
ORGFILES="$ORGFILES \"$i\""