From: Matteo Nastasi Date: Mon, 4 May 2020 06:40:10 +0000 (+0200) Subject: fix cards css generator X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=beefda31077f0d6a9cdd0dcad26d32dd3ef5bf2b;p=brisk-img.git fix cards css generator --- diff --git a/bin/spriter.sh b/bin/spriter.sh index 4698d63..f8df9dd 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -47,9 +47,10 @@ for direction in "" "_ea" "_we"; do if [ "$card_id" = "40" ]; then card_id="cover" fi + card_url=$(echo "$fou" | sed 's@.*/\([^/]\+/[^/]\+$\)@\1@g') cat <> $cssname img[data-card-id="${card_id}${direction}"] { - background: url('img/cards_xx${direction}.png') -${x}px -${y}px; + background: url('${card_url}${direction}.png') -${x}px -${y}px; } EOF