Add my magic file.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 04 Feb 2012 20:21:43 +0200
changeset 295 7970a5d63d57
parent 294 91a01838d930
child 296 0d7678e65dfa
Add my magic file.
.magic
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.magic	Sat Feb 04 20:21:43 2012 +0200
@@ -0,0 +1,3 @@
+0               string/64       -*-
+>&0             regex/64        mode:\ *rst                   reStructuredText plaintext markup
+>&0             regex/64        mode:\ *outline               Outline plaintext markup
--- a/Makefile	Wed Jan 25 09:48:25 2012 +0200
+++ b/Makefile	Sat Feb 04 20:21:43 2012 +0200
@@ -98,6 +98,11 @@
 else
 	install -m 640 .mc/bindings $(HOME)/.mc/bindings
 endif
+	if command -v file 1>/dev/null; then \
+		install -m 640 .magic $(HOME); \
+		cd $(HOME); \
+		file --compile -m .magic; \
+	fi
 
 .PHONY: uninstall
 uninstall: