Guest User

Untitled

a guest
Dec 15th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. run() {
  4. lilypond "$1"
  5. name=$(basename "$1" .ly)
  6. if [ -f "${name}.pdf" ]; then
  7. xpdf -cont -remote LilyPreview "${name}.pdf" &
  8. else
  9. printf "\n file %s.pdf is not present..!\n\n" "$name"
  10. fi
  11. }
  12.  
  13. run "$@"
Add Comment
Please, Sign In to add comment