Changeset 2ba11f8 in rtems


Ignore:
Timestamp:
Aug 27, 2006, 12:45:28 PM (14 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
896247d
Parents:
e25ff2c
Message:

Set the prefix into the MSYS fstab, This is a hack but it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/mingw/rtems-tools.nsi

    re25ff2c r2ba11f8  
    145145FunctionEnd
    146146
     147; Push $filenamestring (e.g. 'c:\this\and\that\filename.htm')
     148; Push '\\'
     149; Pop $R0
     150; Call StrSlash
     151; Pop $R0
     152; ;Now $R0 contains 'c:/this/and/that/filename.htm'
     153Function StrSlash
     154 Exch $R0
     155 Push $R1
     156 Push $R2
     157 StrCpy $R1 0
     158loop:
     159  IntOp $R1 $R1 - 1
     160  StrCpy $R2 $R0 1 $R1
     161  StrCmp $R2 "" done
     162 StrCmp $R2 "\" 0 loop
     163  StrCpy $R2 $R0 $R1
     164   Push $R1
     165  IntOp $R1 $R1 + 1
     166  StrCpy $R1 $R0 "" $R1
     167 StrCpy $R0 "$R2/$R1"
     168   Pop $R1
     169  IntOp $R1 $R1 - 1
     170 Goto loop
     171done:
     172 Pop $R2
     173 Pop $R1
     174 Exch $R0
     175FunctionEnd
     176
    147177Section -BatchFiles
    148178 FileOpen $9 $INSTDIR\rtems.bat w
     
    190220 !insertmacro FILE_WRITE_LINE $9 "                   -e 's/s:\([0-9]*\):/s(\1):/'"
    191221 FileClose $9
     222SectionEnd
     223
     224Section -MSYSLinks
     225 FindFirst $8 $1 c:\msys\1.0\etc\fstab
     226 StrCmp $1 "" MSYSLinksdone
     227  Push $INSTDIR
     228  Call StrSlash
     229  Pop $R0
     230  DetailPrint "Setting MSYS fstab: $R0 -> ${TOOL_PREFIX}"
     231  FileOpen $9 "c:\msys\1.0\etc\fstab" a
     232  FileSeek $9 0 END
     233  FileWrite $9 $R0
     234  FileWriteByte $9 "32"
     235  FileWrite $9 ${TOOL_PREFIX}
     236  FileWriteByte $9 "10"
     237  FileClose $9
     238 MSYSLinksdone:
     239 FindClose $8
    192240SectionEnd
    193241
Note: See TracChangeset for help on using the changeset viewer.