Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 24th, 2012  |  syntax: Bash  |  size: 0.47 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. infodir=usr/share/info
  2. filelist=(global.info)
  3.  
  4. post_install() {
  5.     [ -x usr/bin/install-info ] || return 0
  6.     for file in ${filelist[@]}; do
  7.         install-info $infodir/$file $infodir/dir 2> /dev/null
  8.     done
  9. }
  10.  
  11. post_upgrade() {
  12.     post_install $1
  13. }
  14.  
  15. pre_remove() {
  16.     [ -x usr/bin/install-info ] || return 0
  17.     for file in ${filelist[@]}; do
  18.         install-info --delete $infodir/$file $infodir/dir 2> /dev/null
  19.     done
  20. }
  21.  
  22. # Local Variables:
  23. # mode: sh
  24. # End: