Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- run() {
- lilypond "$1"
- name=$(basename "$1" .ly)
- if [ -f "${name}.pdf" ]; then
- xpdf -cont -remote LilyPreview "${name}.pdf" &
- else
- printf "\n file %s.pdf is not present..!\n\n" "$name"
- fi
- }
- run "$@"
Add Comment
Please, Sign In to add comment