Chinaunix首页 | 论坛 | 博客
  • 博客访问: 470836
  • 博文数量: 711
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 4200
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 14:18
文章分类

全部博文(711)

文章存档

2011年(1)

2008年(710)

我的朋友

分类:

2008-10-29 11:54:54


  此脚本用来编译gnome2final的..包括一个脚本(g2com.sh)和一个编译顺序的数据文件(gnome2-order)
  
  gnome2final大家在ftp.gnome.org.
  ftp.gnome.org
  Release Notes
  
  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中提取的数据.
  
  直接下载:g2com.sh|gnome2-order
  编译脚本 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> ../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
【责编:admin】

--------------------next---------------------

阅读(256) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~