alberthrocks

BASH horror

Feb 25th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. function mkinst_wrap() {
  2.         bigprint "Installing $1""..."
  3.         if [ ! -f "../../""$1"".installed" ];then
  4.                 if [ "$2" = "1" ];then
  5.                         ignoreerr=1
  6.                 elif [ "$3" = "1" ];then
  7.                         ignoreerr=1
  8.                 else
  9.                         ignoreerr=0
  10.                 fi
  11.                 if [ "$ignoreerr" = "1" ];then
  12.                         echo "mkinst_wrap: Warning: Installing with -i."
  13.                 fi
  14.                 if [ "$2" = "" ];then
  15.                         makeinstall $2 $ignoreerr ; checkcode $? "Installing $1"
  16.                 else
  17.                         makeinstall "" $ignoreerr; checkcode $? "Installing $1"
  18.                 fi
  19.                 touch "../../""$1"".installed"
  20.         else
  21.                 echo "Not installing again, since it's already installed."
  22.         fi
  23. }
Advertisement
Add Comment
Please, Sign In to add comment