Ticket #4127: 0003-relax-mc.ext-matching-rules-for-makefiles.patch

File 0003-relax-mc.ext-matching-rules-for-makefiles.patch, 1.1 KB (added by ossi, 23 months ago)
  • misc/mc.ext.in

    From 4ccbd8ac0f85cb856c6477f6a93025b3cf2a388a Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
    Date: Fri, 9 Oct 2020 00:10:42 +0200
    Subject: [PATCH 4/5] relax mc.ext matching rules for makefiles
    
    match the special cases first, and match makefiles irrespective of
    extension. that is useful, as hand-written make-based build systems
    often use qualifying suffixes, like .unix.
    ---
     misc/mc.ext.in | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/misc/mc.ext.in b/misc/mc.ext.in
    index b7f3d1d76..ea7886993 100644
    a b regex/i/\.(epub|mobi)$ 
    671671shell/.class 
    672672        View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass 
    673673 
    674 # Makefile 
    675 regex/^[Mm]akefile$ 
    676         Open=make -f %f %{Enter parameters} 
    677  
    678674# Imakefile 
    679675shell/Imakefile 
    680676        Open=xmkmf -a 
    shell/Imakefile 
    683679regex/^Makefile\.(PL|pl)$ 
    684680        Open=%var{PERL:perl} %f 
    685681 
     682# Makefile 
     683regex/[Mm]akefile 
     684        Open=make -f %f %{Enter parameters} 
     685 
    686686# sqlite3.db 
    687687type/^SQLite 3.x database 
    688688        Open=@EXTHELPERSDIR@/misc.sh open sqlite