aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/svgtopdf
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-02 14:22:19 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-02 14:22:19 +0300
commit06ebba4c53dc2751a2aad1cbccb870bb7db6dc07 (patch)
tree3ed4a5006d7f66b54bcf7e32df2add4bcf9a5911 /dotfiles/.local/bin/svgtopdf
parent348fd5f7ffd4586b8599615dd453dcc61af3ace7 (diff)
downloadswayrice-06ebba4c53dc2751a2aad1cbccb870bb7db6dc07.tar.gz
swayrice-06ebba4c53dc2751a2aad1cbccb870bb7db6dc07.zip
HUGE home cleanup
Diffstat (limited to 'dotfiles/.local/bin/svgtopdf')
-rwxr-xr-xdotfiles/.local/bin/svgtopdf9
1 files changed, 9 insertions, 0 deletions
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"