Advertisement
arkanon

lesspipe-install

Jan 18th, 2013
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Arkanon <arkanon@lsd.org.br>
  4. # 2013/01/18 (Sex) 10:06:37 (BRD)
  5. #
  6. # <http://www.dicas-l.com.br/arquivo/lesspipe_o_less_mais_lindo>
  7. # <http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html>
  8.  
  9. # command     package
  10. # ----------------------------
  11. # 7za         p7zip-full
  12. # antiword    antiword
  13. # bsdcpio     bsdcpio
  14. # bzip2       bzip2
  15. # cabextract  cabextract
  16. # catdoc      catdoc
  17. # cpio        cpio
  18. # djvutxt     djvulibre-bin
  19. # dpkg        dpkg
  20. # dvi2tty     texlive-binaries
  21. # elinks      elinks
  22. # fastjar     fastjar
  23. # gpg         gnupg
  24. # groff       groff-base
  25. # html2text   html2text
  26. # iconv       libc-bin
  27. # id3v2       id3v2
  28. # identify    imagemagick
  29. # isoinfo     genisoimage
  30. # links       links
  31. # lynx        lynx-cur
  32. # lzip        lzip
  33. # lzma        lzma
  34. # mp3info     mp3info
  35. # mp3info2    libmp3-tag-perl
  36. # nm          binutils
  37. # pdftohtml   poppler-utils
  38. # pdftotext   poppler-utils
  39. # perldoc     perl
  40. # plutil      libplist-utils
  41. # ppthtml     ppthtml
  42. # ps2ascii    ghostscript
  43. # pstotext    pstotext
  44. # rpm         rpm
  45. # rpm2cpio    rpm2cpio
  46. # unrar       unrar
  47. # unrtf       unrtf
  48. # unzip       unzip
  49. # w3m         w3m
  50. # xlhtml      xlhtml
  51. # xz          xz-utils
  52. for pkg in p7zip-full antiword bsdcpio bzip2 cabextract catdoc cpio djvulibre-bin dpkg texlive-binaries elinks fastjar gnupg groff-base html2text libc-bin id3v2 imagemagick genisoimage links lynx-cur lzip lzma mp3info libmp3-tag-perl binutils o3read poppler-utils poppler-utils perl libplist-utils ppthtml ghostscript pstotext rpm rpm2cpio unrar unrtf unzip w3m xlhtml xz-utils
  53. do
  54.   apt-get install -y $pkg
  55. done
  56.  
  57. # o3tohtml    o3read            <http://security.ubuntu.com/ubuntu/pool/main/o/o3read/>
  58. pkg="o3read_0.0.4-1_amd64.deb"
  59. wget http://security.ubuntu.com/ubuntu/pool/main/o/o3read/$pkg
  60. dpkg -i $pkg
  61.  
  62. # tarcolor                      <http://github.com/msabramo/tarcolor/>
  63. apt-get install cpanminus
  64. cpanm App::TarColor
  65.  
  66. # sxw2txt     odt2txt
  67. # lsbom                         <http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/lsbom.8.html>
  68.  
  69. wget http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe.tar.gz
  70. ver=$(tar tvf lesspipe.tar.gz | head -n1 | awk -F- '{print$NF}' | cut -d/ -f1)
  71. mv lesspipe.tar.gz lesspipe-$ver.tar.gz
  72. tar zxf lesspipe-$ver.tar.gz
  73. cd lesspipe-$ver
  74. ./configure
  75. cp -ai code2color lesspipe.sh sxw2txt tarcolor /usr/local/bin
  76.  
  77. # EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement