repo.or.cz
/
charm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update LZ4 to 1.8.3
[charm.git]
/
src
/
arch
/
win
/
gathertree.local
blob
45d794de883f135fe619c216fb565e0193975871
1
#!/bin/bash
2
3
[ !
-d
$1
] &&
exit
0
4
[ !
-d
$2
] &&
mkdir
$2
5
6
SYSLN
=
'ln -s -f'
7
[
$OS
=
Windows_NT
] &&
SYSLN
=
'ln -f'
8
9
pushd
$1
> /
dev
/
null
10
SRC
=
`pwd`
11
popd
> /
dev
/
null
12
13
pushd
$2
> /
dev
/
null
14
DST
=
`pwd`
15
popd
> /
dev
/
null
16
17
cd
$SRC
18
for
file
in
`find . -name CVS -prune -o -print`
19
do
20
if
[
-d
$file
];
then
21
mkdir
-p
$DST
/
$file
22
elif
[
-f
$file
];
then
23
$SYSLN $SRC
/
$file $DST
/
$file
24
fi
25
done