Guest User

Xfce git install skript

a guest
Mar 30th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. URL="git://git.xfce.org/xfce"
  4.  
  5. for i in xfce4-dev-tools libxfce4util xfconf libxfce4ui libxfce4gui \
  6.  garcon exo xfce4-panel thunar gtk-xfce-engine installit libfrap \
  7.  xfwm4 thunar-desktop-plugin thunar-vfs thunar-volman tumbler \
  8.  xfce-installers xfce-utils xfce4-appfinder xfce4-docs \
  9.  xfce4-power-manager xfce4-session xfce4-settings xfdesktop
  10. do
  11.     echo "Checking component ${i}"
  12.     if [ -d $i ]
  13.     then
  14.         cd $i
  15.         git pull
  16.         if [ $? -ne 0 ]
  17.         then
  18.             echo "Pull of component ${i} failed!"
  19.             exit 1
  20.         fi
  21.         cd ..
  22.     else
  23.         git clone "${URL}/$i"
  24.         if [ $? -ne 0 ]
  25.         then
  26.             echo "Clone of component ${i} failed!"
  27.             exit 1
  28.         fi
  29.     fi
  30. done
  31.  
  32. echo "Checkout done!"
  33.  
  34. echo "Password:"
  35. stty -echo
  36. read password
  37. stty echo
  38.  
  39. for i in xfce4-dev-tools libxfce4util xfconf libxfce4ui libxfce4gui
  40.  garcon exo xfce4-panel thunar gtk-xfce-engine libfrap xfwm4 \
  41.  thunar-vfs thunar-volman tumbler xfce-installers xfce-utils \
  42.  xfce4-appfinder xfce4-power-manager xfce4-session xfce4-settings \
  43.  xfdesktop
  44. do
  45.     echo "Installing component ${i}"
  46.     cd $i
  47.     PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./autogen.sh
  48.     if [ $? -ne 0 ]
  49.     then
  50.         echo "Configure of component ${i} failed!"
  51.         exit 1
  52.     fi
  53.     make
  54.     if [ $? -ne 0 ]
  55.     then
  56.         echo "Make of component ${i} failed!"
  57.         exit 1
  58.     fi
  59.     echo $password | sudo -S make install
  60.     if [ $? -ne 0 ]
  61.     then
  62.         echo "Make install of component ${i} failed!"
  63.         exit 1
  64.     fi
  65.     echo "Installing component ${i} successful!"
  66.     cd ..
  67. done
  68.  
  69. cd installit
  70. echo $password | sudo -S python2 setup.py install
  71. if [ $? -ne 0 ]
  72. then
  73.     echo "Install of component installit failed!"
  74.     exit 1
  75. fi
  76. cd ..
  77.  
  78. echo "Xfce Git installed successfully!"
  79.  
  80. # TODO  thunar-desktop-plugin, xfce-installers, xfce4-docs
Advertisement
Add Comment
Please, Sign In to add comment