aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-18 20:55:14 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-18 20:56:12 +0200
commit670436b6c4ef186963780c08cbdf42d32eeab1a1 (patch)
treeffa00e427aff2dda155aa3156437775cd869555a
parent59758b41218ac9d410b8aaa68fdc8a07dfb1b4bd (diff)
downloadlbsd-670436b6c4ef186963780c08cbdf42d32eeab1a1.tar.gz
ROX: Handle text/x-makefile separately from text/*
-rwxr-xr-xhome/john/.config/rox.sourceforge.net/MIME-types/text7
-rwxr-xr-xhome/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile3
2 files changed, 5 insertions, 5 deletions
diff --git a/home/john/.config/rox.sourceforge.net/MIME-types/text b/home/john/.config/rox.sourceforge.net/MIME-types/text
index 1e49770..532d70d 100755
--- a/home/john/.config/rox.sourceforge.net/MIME-types/text
+++ b/home/john/.config/rox.sourceforge.net/MIME-types/text
@@ -1,6 +1,3 @@
-#! /bin/sh
+#!/bin/sh
cd "$(dirname "$1")"
-case "$1" in
-*/Makefile) exec xtopen -K make ;;
-*) exec xtopen vi "$1" ;;
-esac
+exec xtopen vi "$1"
diff --git a/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile b/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile
new file mode 100755
index 0000000..eae4c0f
--- /dev/null
+++ b/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd "$(dirname "$1")"
+exec xtopen -K make