home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
x
/
xntp3.zip
/
mklinks
< prev
next >
Wrap
Text File
|
1992-09-04
|
324b
|
10 lines
#!/bin/sh
# call from the source root as 'mklinks ../sun4 ../src'
find . -type d -print | sort | sed "s-^\.-mkdir $1-" | sh
root=`echo $2 | sed "s-^\.\./--"`
find . ! -type d -a ! -name Config -print | sed "s-^\./--" | while read file
do
down=`echo $file | sed -e "s-[^/]*-..-g"`
ln -s $down/$root/$file $1/$file
done