# Copyright (C) Earnie Boyd <earnie@users.sf.net>
# This file is a part of msysDVLPR.
# http://www.mingw.org/msysdvlpr.shmtl
#
echo
echo "This is a post install process that will try to normalize between"
echo "your MinGW install if any as well as your previous MSYS installs "
echo "if any. I don't have any traps as aborts will not hurt anything."
echo -n "Do you wish to continue with the post install? [yn ] "; read ans
if [ $ans == 'n' ]; then exit 1; fi
. /etc/profile
echo
echo -n "Do you have MinGW installed? [yn ] "; read ans
if [ $ans == y ]
then
echo
echo "Please answer the following in the form of c:/foo/bar."
echo -n "Where is your MinGW installation? "; read ans
if [ -f $ans/bin/gcc.exe ]
then
mingwpath=$ans
else
mingwpath=
fi
if [ -z "$mingwpath" ]
then
echo
echo I could not find $ans/bin/gcc.exe. You must have given an invalid
echo path to your MinGW environment. I am reversing to no MinGW
echo installation. If you do have MinGW installed then you can manually
echo bind the mount point /mingw to C:/mingw '('replace C: with the
echo drive of your choice')' by creating an /etc/fstab file with a line
echo that has a value similar to:
echo C:/mingw /mingw
echo -n Press ENTER to continue; read ans
fi
else
mingwpath=
echo
echo "When you install MinGW I suggest you install it to C:/mingw"
echo '(replace C: with the drive of your choice). Then create an'
echo '/etc/fstab file with a line that has a value similar to:'
echo 'C:/mingw /mingw'
echo -n 'Press ENTER to continue '; read ans
fi
if [ ! -z "$mingwpath" ]
then
if [ -f /etc/fstab ]
then
echo
echo "I see that you already have an /etc/fstab file. Do you wish for me"
echo -n "to add mount bindings for $mingwpath to /mingw? [yn ]"; read ans
if [ $ans == 'y' ]
then
cat <<EOF>>/etc/fstab
$mingwpath /mingw
EOF
fi
else
echo
echo -n "Creating /etc/fstab with mingw mount bindings."
cat <<EOF>/etc/fstab
$mingwpath /mingw
EOF
fi
fi
echo
echo " Normalizing your MSYS environment."
echo
for I in awk cmd echo egrep ex fgrep printf pwd rvi rview rvim vi view
do
if [ -f /bin/$I. ]
then
echo You have script /bin/$I
if [ -f /bin/$I.exe ]
then
echo Removing /bin/$I.exe
rm -f /bin/$I.exe
fi
fi
done
for I in ftp ln make
do
if [ -f /bin/$I.exe ] && [ -f /bin/$I. ]
then
echo You have both /bin/$I.exe and /bin/$I.
echo Removing /bin/$I.
rm -f /bin/$I.
fi
done
if [ -z "$mingwpath" ]
then
echo
echo MinGW-1.1 has a version of make.exe within it\'s bin/ directory.
echo Please be sure to rename this file to mingw32-make.exe once you've
echo installed MinGW-1.1 because it\'s very deficient in function.
echo -n Press ENTER to continue. ; read ans
else
if [ -f $mingwpath/bin/make.exe ]
then
echo
echo Renaming $mingwpath/bin/make.exe to mingw32-make.exe.
mv $mingwpath/bin/make.exe $mingwpath/bin/mingw32-make.exe
else
echo
echo Oh joy, you do not have $mingwpath/bin/make.exe. Keep it that way.
fi
fi
zk12141985
- 粉丝: 3
- 资源: 104
最新资源
- C#源码 上位机 联合Visionpro 通用框架开发源码,已应用于多个项目,整套设备程序,可以根据需求编出来,具体Vpp功能自己编 程序包含功能 1.自动设置界面窗体个数及分布 2.照方式以命令触
- 几何物体检测42-YOLO(v5至v11)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
- 云计算全套课程资料.zip
- 基于cruise的燃料电池功率跟随仿真,按照丰田氢能源车型搭建,在wltc工况下跟随效果好,最高车速175,最大爬坡30,百公里9s均已实现 1.模型通过cruise simulink联合仿真,策略
- 材料进场验收台账样表.docx
- 建筑材料入库台账样表.docx
- 建筑材料复验台账样表.docx
- 建筑材料台账样表模板.docx
- 建筑材料送检台账样表.docx
- 建筑材料出库台帐模板.docx
- 建筑材料报验单(样表).docx
- 几何物体检测43-YOLO(v5至v9)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
- 几何物体检测44-YOLO(v5至v11)、COCO、CreateML、Paligemma、TFRecord、VOC数据集合集.rar
- C++语言实例-毕业设计项目:涂格子游戏开发,图形界面交互特点-开题报告,论文,答辩PPT参考
- python语言kssp批量下载爬虫程序代码QZQ3.txt
- IP102中分离出来的害虫数据集,使用Pasical VOC XML标注
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈