source: Daodan/MinGW/msys/1.0/bin/lnkcnv@ 1126

Last change on this file since 1126 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 481 bytes
RevLine 
[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
8Param1=$1
9LinkName=`echo $Param1 | sed -e 's/\.lnk$//'`
10FileName=`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
18ln -s $FileName $LinkName
19rm -f $Param1
Note: See TracBrowser for help on using the repository browser.