一般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) |