Install msysDVLPR-1.0.0-alpha-1
[msysgit.git] / msys / store / noarch / bin / ln
blobcd9dfd85ca3b9e0631ac07c20916104a5c341f0b
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: ln - Win32 replacement for symlink.
8 if [ $1 = '-s' ]
9 then
10 shift
13 if [[ $# -eq 1 ]]
14 then
15 FROM=$1
16 TO=`basename $FROM`
17 else
18 while [[ $# -gt 1 ]]
20 FROM="$FROM$1"
21 if [[ $# -gt 2 ]]
22 then
23 FROM="$FROM "
25 shift
26 done
27 TO=$1
30 cp -a $FROM $TO