From 06ebba4c53dc2751a2aad1cbccb870bb7db6dc07 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 2 Apr 2020 14:22:19 +0300 Subject: HUGE home cleanup --- dotfiles/.local/bin/svgtopdf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 dotfiles/.local/bin/svgtopdf (limited to 'dotfiles/.local/bin/svgtopdf') diff --git a/dotfiles/.local/bin/svgtopdf b/dotfiles/.local/bin/svgtopdf new file mode 100755 index 0000000..f59bd98 --- /dev/null +++ b/dotfiles/.local/bin/svgtopdf @@ -0,0 +1,9 @@ +#!/bin/sh + +file=$(readlink -f "$1") +dir=$(dirname "$file") +base="${file%.*}" + +cd "$dir" || exit + +inkscape -z -D --file="$file" --export-pdf="$base.pdf" -- cgit v1.2.3