repo.or.cz
/
msysgit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Install msysDVLPR-1.0.0-alpha-1
[msysgit.git]
/
msys
/
store
/
noarch
/
bin
/
ln
blob
cd9dfd85ca3b9e0631ac07c20916104a5c341f0b
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.
7
8
if
[
$1
=
'-s'
]
9
then
10
shift
11
fi
12
13
if
[[
$#
-eq
1
]]
14
then
15
FROM
=
$1
16
TO
=
`basename
$FROM
`
17
else
18
while
[[
$#
-gt
1
]]
19
do
20
FROM
=
"
$FROM
$1
"
21
if
[[
$#
-gt
2
]]
22
then
23
FROM
=
"
$FROM
"
24
fi
25
shift
26
done
27
TO
=
$1
28
fi
29
30
cp
-a
$FROM $TO