此脚本用来编译gnome2final的..包括一个脚本(g2com.sh)和一个编译顺序的数据文件(gnome2-order)
gnome2final大家在ftp.gnome.org下载.
[url=http://ftp.gnome.org/pub/GNOME/2.0.0/releases/gnome-2.0-desktop-final/]ftp.gnome.org[/url]
[url=http://www.gnome.org/start/2.0/releasenotes.html]Release Notes[/url]
1.下载时选tar.gz或tar.bz2,下载到一个目录下,然后解压.可用以下脚本.
2.解压
解tar.gz
#!/bin/sh
for i in ./*.gz ; do
tar zxvf $i
done
解tar.bz2
#!/bin/sh
for i in ./*.bz2 ; do
bzip2 -d $i | tar xvf -
done
3.解压后在使用编译脚本:
先做好gnome2-order文本文件.
把这个脚本拷贝到刚才解压的目录中.
执行
说明:
(1)g2com.sh流程:
先建了两个文件用来记录configure和make的信息,以便查错.
然打开一个文件描述府,读取一行作为目录,判断目录存在,进入目录,配置编译..否则退出.
最后关闭文件描述府.结束
(2)gnome2-order中的次序是gnome.org>>relase notes>>install order中提取的数据.
直接下载:[url=http://211.95.164.50/tmp/g2com.sh]g2com.sh[/url]|[url=http://211.95.164.50/tmp/gnome2-order]gnome2-order[/url]
编译脚本 g2com.sh
#################################################
#!/bin/sh
#g2com.sh
#create the tow file to record config/make status
touch conf.status
touch make.status
#open "gnome2-order" to read for compily
exec 4<&0 0<gnome2-order
sum=0
while [ $sum -lt 60 ];
do
read i
if [ -d $i ]; then
cd $i
pwd
echo -n "Start Compily $i";
./configure >> ../conf.status
make >> ../make.status
make install
cd ../
else
echo "The Dectionary $i is not exsit";
exit
fi
#counter
sum=$[$sum+1]
done
#close file_handle
exec 0<&4
#End###########################################################
gnome2-order文本文件:不能有空行..
libxml2-2.4.22
libxslt-1.0.18
scrollkeeper-0.3.9
pkgconfig-0.12.0
audiofile-0.2.3
esound-0.2.28
gtk-doc-0.9
glib-2.0.4
linc-0.5.0
atk-1.0.2
gnome-common-1.2.4
pango-1.0.3
libIDL-0.8.0
ORBit2-2.4.0
intltool-0.22
bonobo-activation-1.0.2
gtk+-2.0.5
GConf-1.2.0
libart_lgpl-2.3.9
libzvt-2.0.1
libbonobo-2.0.0
gnome-mime-data-2.0.0
gnome-vfs-2.0.1
libglade-2.0.0
libgnome-2.0.1
libgnomecanvas-2.0.1
libbonoboui-2.0.0
libgnomeui-2.0.1
libwnck-0.14
libgnomeprint-1.115.0
libgnomeprintui-1.115.0
libgtop-2.0.0
librsvg-2.0.0
gail-0.16
eel-2.0.0
libgtkhtml-2.0.0
gtk-engines-1.9.0
gnome-desktop-2.0.2
gnome-panel-2.0.1
gnome-session-2.0.1
gnome-terminal-2.0.0
gnome-utils-2.0.0
gnome-applets-2.0.0
control-center-2.0.0
gnome-games-2.0.1
bug-buddy-2.2.0
eog-1.0.1
nautilus-2.0.0
gnome-system-monitor-2.0.0
yelp-1.0.1
gedit-2.0.0
librep-0.16
rep-gtk-0.16
sawfish-2.0
gnome-media-2.0.0
gdm-2.4.0.0
at-spi-1.0.1
libgail-gnome-1.0.0
gconf-editor-0.2
gnome2-user-docs-1.93