You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
226 B
13 lines
226 B
6 years ago
|
#!/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"
|
||
6 years ago
|
esac
|