view pixmaps/gen-inline-pixbufs.sh @ 30560:53af60596aba v9.0.0615

patch 9.0.0615: using reduce() on a list from range() is a bit slow Commit: https://github.com/vim/vim/commit/52df40eb04726f9ee3c54ef8f7d856f1254b191a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 28 13:22:59 2022 +0100 patch 9.0.0615: using reduce() on a list from range() is a bit slow Problem: Using reduce() on a list from range() is a bit slow. Solution: Avoid materializing the list.
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Sep 2022 14:30:04 +0200
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