Changeset 2ba11f8 in rtems
- Timestamp:
- 08/27/06 12:45:28 (17 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 896247d
- Parents:
- e25ff2c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/mingw/rtems-tools.nsi
re25ff2c r2ba11f8 145 145 FunctionEnd 146 146 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' 153 Function StrSlash 154 Exch $R0 155 Push $R1 156 Push $R2 157 StrCpy $R1 0 158 loop: 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 171 done: 172 Pop $R2 173 Pop $R1 174 Exch $R0 175 FunctionEnd 176 147 177 Section -BatchFiles 148 178 FileOpen $9 $INSTDIR\rtems.bat w … … 190 220 !insertmacro FILE_WRITE_LINE $9 " -e 's/s:\([0-9]*\):/s(\1):/'" 191 221 FileClose $9 222 SectionEnd 223 224 Section -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 192 240 SectionEnd 193 241
Note: See TracChangeset
for help on using the changeset viewer.