mkfile 735 B

1234567891011121314151617181920212223242526
  1. all:V: install
  2. PREFIX=`echo ${PREFIX:-/usr/local}`
  3. install:V: music play local yt file stream #playlist
  4. mkdir -m755 -p $PREFIX/bin
  5. cp music $PREFIX/bin/music
  6. chmod 755 $PREFIX/bin/music
  7. cp play $PREFIX/bin/play
  8. chmod 755 $PREFIX/bin/play
  9. ln -s $PREFIX/bin/play $PREFIX/bin/queue
  10. mkdir -m755 -p $PREFIX/share/play
  11. cp -R local $PREFIX/share/play/local
  12. chmod a+rX,u+rwX $PREFIX/share/play/local
  13. cp -R yt $PREFIX/share/play/file
  14. chmod a+rX,u+rwX $PREFIX/share/play/file
  15. cp -R yt $PREFIX/share/play/yt
  16. chmod a+rX,u+rwX $PREFIX/share/play/yt
  17. cp -R yt $PREFIX/share/play/stream
  18. chmod a+rX,u+rwX $PREFIX/share/play/stream
  19. uninstall:V:
  20. rm $PREFIX/bin/music
  21. rm $PREFIX/bin/play
  22. rm $PREFIX/bin/queue
  23. rm -r $PREFIX/share/play