Mercurial > vim
view pixmaps/gen-inline-pixbufs.sh @ 3334:636c2b1cdc8b v7.3.434
updated for version 7.3.434
Problem: Using join() can be slow.
Solution: Compute the size of the result before allocation to avoid a lot of
allocations and copies. (Taro Muraoka)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 06 Feb 2012 00:13:22 +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