tools/cloney
changeset 179 ca3935296621
parent 116 ae6a90899b42
child 198 172fc01ce997
equal deleted inserted replaced
178:4340c0d63702 179:ca3935296621
    42     while read i;
    42     while read i;
    43 do
    43 do
    44 	mkdir -p "${destdir}/$i"
    44 	mkdir -p "${destdir}/$i"
    45 done
    45 done
    46 
    46 
    47 gfind . -type f | \
    47 gfind . -type f -o -type l | \
    48     gsed -e 's,^./,,' | \
    48     gsed -e 's,^./,,' | \
    49     while read i;
    49     while read i;
    50 do
    50 do
    51 	rm -f "${destdir}/$i"
    51 	rm -f "${destdir}/$i"
    52 	ln -s "${srcdir}/$i" "${destdir}/$i"
    52 	ln -s "${srcdir}/$i" "${destdir}/$i"