#!/bin/sh # store filename and extension in local vars BASENAME="$1" EXTENSION="${BASENAME##*.}" # map Makefile and Makefile.* to .mk [ "${BASENAME%%.*}" = "Makefile" ] && EXTENSION=mk exec highlight --force -f -S "$EXTENSION" 2>/tmp/cgit.filter