From: Rudolf Polzer Date: Thu, 1 Apr 2021 13:41:57 +0000 (+0200) Subject: Support newer Inkscape version. X-Git-Tag: xonotic-v0.8.5~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1427bbc057a6b2999c6fea6ecb2ec220a3688a17;p=xonotic%2Fmediasource.git Support newer Inkscape version. --- diff --git a/gfx/menu/luminos_versionbuilder/versionbuilder b/gfx/menu/luminos_versionbuilder/versionbuilder index 41f5f06..5aac35f 100755 --- a/gfx/menu/luminos_versionbuilder/versionbuilder +++ b/gfx/menu/luminos_versionbuilder/versionbuilder @@ -22,7 +22,9 @@ fi sed -e "s/VERSIONPLACEHOLDER/$1/" background_l2.svg > tmp.svg #Create tga files -inkscape -f "tmp.svg" -d 90 -e "background_l2.png" +# TODO: remove old inkscape support (second case). +inkscape --export-dpi=90 --export-filename="background_l2.png" "tmp.svg" ||\ + inkscape -f "tmp.svg" -d 90 -e "background_l2.png" convert background_l2.png background_l2.tga # gimp -d -f -i -b '(all2tga "background_l2.png" 1)' -b '(gimp-quit 0)' cp background_l2.tga background_ingame_l2.tga