Skip to content
Browse files

Deleted bash shim

  • Loading branch information...
1 parent 45d837f commit b583ed0b767deaa0b6732f6f355b3a0bf50dcf24 @chrismgray committed Mar 13, 2012
Showing with 0 additions and 34 deletions.
  1. +0 −34 sh/new-org
View
34 sh/new-org
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-inputfile=$(tempfile)
-outputfile=$(tempfile)
-
-watch() {
-# tail --follow=name $outputfile > /dev/stderr &
- tail --follow=name $outputfile 2> /dev/null
-}
-
-cleanup() {
- rm $inputfile
- rm $outputfile
-}
-
-trap cleanup SIGHUP SIGINT EXIT
-
-check-emacs() {
- # check if the daemon is running with a simple math problem
- emacsclient -s "org-ikiwiki-compiler" --eval "(+ 1 1)"
- # if it isn't then start a new one
- if [ $? -ne 0 ]; then
- emacs --daemon --eval "(progn (require 'ikiwiki-org-plugin) (setq server-name \"org-ikiwiki-compiler\") (server-start))"
- fi
-}
-
-IFS=
-watch &
-check-emacs
-emacsclient -s "org-ikiwiki-compiler" --eval "(org-ikiwiki-compile \"$inputfile\" \"$outputfile\")" &
-while read -r line; do
- echo -E "$line" >> $inputfile
-# echo -E "$line" > /dev/stderr
-done

0 comments on commit b583ed0

Please sign in to comment.
Something went wrong with that request. Please try again.