From 060e5d1997b32f646a95419924dd41fd7bf6d9b7 Mon Sep 17 00:00:00 2001 From: renan-ranelli Date: Mon, 24 Nov 2014 01:55:34 -0200 Subject: Rename README to README.org --- scripts/pre-commit | 4 ---- scripts/readme-to-md.el | 13 ------------- 2 files changed, 17 deletions(-) delete mode 100755 scripts/pre-commit delete mode 100644 scripts/readme-to-md.el (limited to 'scripts') 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)) -- cgit v1.2.3