Chinaunix首页 | 论坛 | 博客
  • 博客访问: 583780
  • 博文数量: 111
  • 博客积分: 3478
  • 博客等级: 中校
  • 技术积分: 1327
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-28 22:37
文章分类

全部博文(111)

文章存档

2013年(4)

2012年(57)

2011年(15)

2010年(7)

2009年(28)

分类: LINUX

2011-08-15 17:39:03

一般tar包的安装脚本:
 
#!/bin/bash
#THis programe is used to install  tar.gz packages
#it's fit for software not have a particular use to run it"
#author yelang
#communicate please join qq number 1091262364
echo "please input the tar file name"
read tar_file
echo "***********************************"
echo "please input the directory you want to install the software"
read dest_dir
echo "************************************"
echo "the dirname is the tarfile has been uncompressed directory"
tar -zxvf $tar_file :
read dirname
cd $dirname
if [ -e configure ];then
#!/bin/bash
#THis programe is used to install  tar.gz packages
#it's fit for software not have a particular use to run it"
#author yelang
#communicate please join qq number 1091262364
echo "please input the tar file name"
read tar_file
echo "************************************"
echo "the dirname is the tarfile has been uncompressed directory"
tar -zxvf $tar_file
cd $dirname
if [ -e configure ];then
echo "please input the directory you want to install the software"
read dest_dir
./configure --prefix=$dest_dir && make && make install && echo "${tar_file} install successful " >> installlog
else
echo " i can't install this file " >>installlog
fi
阅读(756) | 评论(0) | 转发(0) |
0

上一篇:java 环境的认识

下一篇:xargs

给主人留下些什么吧!~~