mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-19 01:11:05 +01:00
10 lines
324 B
Bash
Executable File
10 lines
324 B
Bash
Executable File
#!/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
|