Moves binaries for use with gnu stow
This commit is contained in:
parent
f528ba793c
commit
4fd9f4809b
89 changed files with 0 additions and 0 deletions
12
bin/.bin/conversion/convert-to-pdf
Executable file
12
bin/.bin/conversion/convert-to-pdf
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
file=$(readlink -f "$1")
|
||||
dir=$(dirname "$file")
|
||||
base="${file%.*}"
|
||||
|
||||
cd "$dir" || exit
|
||||
|
||||
case "$file" in
|
||||
*\.doc|*\.docx) libreoffice --convert-to pdf "$file" ;;
|
||||
*) echo "Don't know how to convert $file"
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue