summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pre-commit4
-rw-r--r--scripts/readme-to-md.el13
2 files changed, 0 insertions, 17 deletions
diff --git a/scripts/pre-commit b/scripts/pre-commit
deleted file mode 100755
index 56890a7..0000000
--- a/scripts/pre-commit
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env sh
-
-emacs --batch --load scripts/readme-to-md.el
-git add README.md
diff --git a/scripts/readme-to-md.el b/scripts/readme-to-md.el
deleted file mode 100644
index 41a8d05..0000000
--- a/scripts/readme-to-md.el
+++ /dev/null
@@ -1,13 +0,0 @@
-(defvar org-location "~/src/emacs/org-mode/lisp")
-
-(when (and org-location (file-exists-p org-location))
- (add-to-list 'load-path org-location)
- (require 'org))
-(require 'ox-md)
-
-(let ((readme-file "README")
- exported-file
- (final-file "README.md"))
- (with-current-buffer (find-file-noselect readme-file)
- (setq exported-file (org-md-export-to-markdown)))
- (rename-file exported-file final-file t))