From 21f59c1d54288a397917b68c850dce28589a7def Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 25 Oct 2016 12:13:17 -0700 Subject: [PATCH] [Emacs] Update variable name in hook util --- dotfiles/emacs.d/bin/util.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/bin/util.sh b/dotfiles/emacs.d/bin/util.sh index 168c69a5..dfe8f08e 100755 --- a/dotfiles/emacs.d/bin/util.sh +++ b/dotfiles/emacs.d/bin/util.sh @@ -1,15 +1,15 @@ # -*- mode: sh -*- EMACS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" TOP_LEVEL="$(git rev-parse --show-toplevel)" -README="$EMACS_DIR/README.org" -REPOSITORY_NAME="$(realpath --relative-to="$TOP_LEVEL" "$README")" +TARGET="$EMACS_DIR/README.org" +REPOSITORY_NAME="$(realpath --relative-to="$TOP_LEVEL" "$TARGET")" readme_was_updated() { git diff HEAD HEAD~1 --name-only | grep --quiet "$REPOSITORY_NAME" } update_index () { - emacsclient -e "(with-current-buffer (find-file-noselect \"$README\") + emacsclient -e "(with-current-buffer (find-file-noselect \"$TARGET\") (org-html-export-to-html))" cp -f "$EMACS_DIR/README.html" "$TOP_LEVEL/index.html" }