Guest User

Untitled

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