#!/bin/bash

for size in 16 20 24 32 48 ; do
    INDIR=~/stock-icons/$size
    OUTDIR=~/stock-icons/${size}@2x
    mkdir -p $OUTDIR
    
    for f in $INDIR/*.svg ; do
        outfile=$(echo `basename $f` | sed 's/\.svg/.png/')
        inkscape $f -e $OUTDIR/$outfile --export-dpi=180
    done
done
