view pixmaps/gen-inline-pixbufs.sh @ 12808:2ff38c2addd4 v8.0.1281

patch 8.0.1281: loading file type detection slows down startup commit https://github.com/vim/vim/commit/851ee6c3da5fd726d92e1e3300d7e5e2e8b907c5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 9 20:46:17 2017 +0100 patch 8.0.1281: loading file type detection slows down startup Problem: Loading file type detection slows down startup. Solution: Move functions to an autoload script.
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Nov 2017 21:00:05 +0100
parents 3fc0f57ecb91
children d4faa2c5211b
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