Mercurial > vim
view pixmaps/gen-inline-pixbufs.sh @ 27692:7346315e8517 v8.2.4372
patch 8.2.4372: filetype detection from file contents is in legacy script
Commit: https://github.com/vim/vim/commit/299d8e5eec8f8ae91177f7feb67ad59402dfa8e2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 13 20:32:02 2022 +0000
patch 8.2.4372: filetype detection from file contents is in legacy script
Problem: Filetype detection from file contents is in legacy script.
Solution: Use a compiled function for filetype detection.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Feb 2022 21:45:02 +0100 |
parents | d4faa2c5211b |
children |
line wrap: on
line source
#! /bin/sh prefix=stock_ list= for file in "$@"; do name=$(echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||') list="$list $prefix$name $file" done gdk-pixbuf-csource --raw --static --build-list $list