view pixmaps/gen-inline-pixbufs.sh @ 21064:6dc8625889fe v8.2.1083

patch 8.2.1083: crash when using reduce() on a NULL list Commit: https://github.com/vim/vim/commit/fda20c4cc59008264676a6deb6a3095ed0c248e0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 29 20:09:36 2020 +0200 patch 8.2.1083: crash when using reduce() on a NULL list Problem: Crash when using reduce() on a NULL list. Solution: Only access the list when not NULL.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jun 2020 20:15:04 +0200
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