Guest User

Untitled

a guest
Jul 6th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. pkgname=minizinc-ide
  2.  
  3. post_install() {
  4.     # Create links to MiniZinc executables
  5.     for e in $(find /opt/$pkgname/bin -type f -executable -printf "%P\n")
  6.     do
  7.         ln -s /opt/$pkgname/bin/$e /usr/bin/$e
  8.     done
  9.    
  10.     ln -s /opt/$pkgname/MiniZincIDE.sh /usr/bin/minizinc-ide
  11. }
  12.  
  13. pre_remove() {
  14.     # Remove links to MiniZinc executables
  15.     for e in $(find /opt/$pkgname/bin -type f -executable -printf "%P\n")
  16.     do
  17.         rm /usr/bin/$e
  18.     done
  19.    
  20.     rm /usr/bin/minizinc-ide
  21. }
Add Comment
Please, Sign In to add comment