compiling script for Xfce-4.0.6

Alexander Vidybida vidybida at bitp.kiev.ua
Mon Jul 19 10:53:21 CEST 2004


Hi to everybody, and my sincere thanks to the developers.

In the attachment, please find a script for fast compiling and
installing all Xfce packages from sorce.

Before using it, one needs to decompress the tarball with the bunzip2.
Then put the script into the directory xfce-4.0.6/src and run it.

What does the script do ?

1. It decompresses all subpackages.
2. It goes in the correct order into each subpackage directory and run 
./configure, make, make install.
3. It reports timing and the exit status of each operation in the file 'report'

What if something goes wrong ? 

-- If the axit status is not 0, the script breaks. 
Normally this happens because one or another library from Linux
is not installed. Which one, can be guessed from the screen output during 
running the script. Thus, one needs to install that library and run the script 
again. In order not to decompress repeatedly, it is recommended to delete the
first 6 lines (the first undeleted line should be `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig;'), before runnig second time. Also, in order not to repetedly 
compile already OK installed subpackages, one may delete lines with those 
subpackages names from the script.
The names of OK subpackages can be read from the `report' file.

Best regards,
--
Alexander Vidybida


-------------- next part --------------
for a in `ls *gz`
do
 echo decompressing $a
 tar -zxf $a
 echo done
done 
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig;
export PKG_CONFIG_PATH
echo START `date` >> report
n=0
for a in \
libxfce4util-4.0.6/ \
libxfcegui4-4.0.6/ \
libxfce4mcs-4.0.6/ \
xfce-mcs-manager-4.0.6/ \
xfce4-iconbox-4.0.6/ \
xfwm4-themes-4.0.6/ \
xfwm4-4.0.6/ \
xfce4-panel-4.0.6/ \
xfce4-systray-4.0.6/ \
xfce4-themes-4.0.6/ \
dbh-1.0.18/ \
gtk-xfce-engine-2.1.10/ \
xfce4-mixer-4.0.6/ \
xfce4-toys-4.0.6/ \
xfce4-trigger-launcher-4.0.6/ \
xfce-mcs-plugins-4.0.6/ \
xfce-utils-4.0.6/ \
xfdesktop-4.0.6/ \
xffm-4.0.6/ \
xffm-icons-4.0.6/ \
xfprint-4.0.6/ \
xfcalendar-0.1.9/ \

do
 ess=0
 echo $a start |tee -a report
 cd $a
 if [ $n -ne 0 ] 
   then
    cp -f ../config.h .
 fi   
 ./configure --with-sound=alsa
 ess=$?
 echo "             " configure exit status:$ess | tee -a ../report
 if [ $ess -ne 0 ]
   then
   echo $a interrupted | tee -a ../report
   break
 fi   
 cp -f config.h ..
 make
 ess=$?
 echo "             " make exit status:$ess | tee -a ../report
 if [ $ess -ne 0 ]
   then
   echo $a interrupted | tee -a ../report
   break
 fi   
 make install
 ess=$?
 echo "             " make install exit status:$ess | tee -a ../report
 if [ $ess -ne 0 ]
   then
   echo $a interrupted | tee -a ../report
   break
 fi   
 cd ..
 let "n = n + 1"
 echo "          " $n finish `date` | tee -a report
done



More information about the Xfce mailing list