Add and use expat and curl to enable http://.
[msysgit/historical-msysgit.git] / bin / lnkcnv
blob77a3d84b43f97d4a1f2cbfd553beaf734a4763b4
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.
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 ' '`
18 ln -s $FileName $LinkName
19 rm -f $Param1