ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MinGW/msys/1.0/bin/lnkcnv
Revision: 1046
Committed: Mon Aug 29 13:19:38 2016 UTC (9 years, 2 months ago) by alloc
File size: 481 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file

File Contents

# Content
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