]> git.street.me.uk Git - andy/viking.git/blob - win32/msys-pi.sh
Windows: Add .vik file extension association option in the installer
[andy/viking.git] / win32 / msys-pi.sh
1 # Fix up MSYS install
2 # Don't ask for questions
3 # fix fstab to the values I need
4
5 . /etc/profile
6
7 echo
8 echo "Creating /etc/fstab with mingw mount bindings."
9 cat <<EOF>/etc/fstab
10 C:\MinGW /mingw
11 C:\Perl /opt/perl
12 EOF
13
14 # Stuff from original post MSYS install script
15 echo
16 echo    "        Normalizing your MSYS environment."
17 echo
18
19 for I in awk cmd echo egrep ex fgrep printf pwd rvi rview rvim vi view
20 do
21   if [ -f /bin/$I. ]
22   then
23     echo You have script /bin/$I
24     if [ -f /bin/$I.exe ]
25     then
26       echo Removing /bin/$I.exe
27       rm -f /bin/$I.exe
28     fi
29   fi
30 done
31
32 for I in ftp ln make
33 do
34   if [ -f /bin/$I.exe ] && [ -f /bin/$I. ]
35   then
36     echo You have both /bin/$I.exe and /bin/$I.
37     echo Removing /bin/$I.
38     rm -f /bin/$I.
39   fi
40 done