Last change
on this file since 1163 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
481 bytes
|
Rev | Line | |
---|
[1046] | 1 | #!/bin/sh
|
---|
| 2 | # Copyright (C) 2002, Earnie Boyd
|
---|
| 3 | # mailto:earnie@users.sf.net
|
---|
| 4 | # This file is part of Minimal SYStem.
|
---|
| 5 | # http://www.mingw.org/msys.shtml
|
---|
| 6 | # File: lnkcnv - .lnk symlink file to actual file converter.
|
---|
| 7 |
|
---|
| 8 | Param1=$1
|
---|
| 9 | LinkName=`echo $Param1 | sed -e 's/\.lnk$//'`
|
---|
| 10 | FileName=`cat $Param1 | tr '[:cntrl:]' ' ' | \
|
---|
| 11 | sed -e 's/ / /g' \
|
---|
| 12 | -e 's/ / /g' \
|
---|
| 13 | -e 's/ / /g' \
|
---|
| 14 | -e 's/ / /g' \
|
---|
| 15 | -e 's/ / /g' | \
|
---|
| 16 | cut -f 4 -d ' '`
|
---|
| 17 |
|
---|
| 18 | ln -s $FileName $LinkName
|
---|
| 19 | rm -f $Param1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.