diff options
Diffstat (limited to 'usr.sbin/xntpd/scripts/mklinks')
-rwxr-xr-x | usr.sbin/xntpd/scripts/mklinks | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/scripts/mklinks b/usr.sbin/xntpd/scripts/mklinks new file mode 100755 index 0000000..8565d1c --- /dev/null +++ b/usr.sbin/xntpd/scripts/mklinks @@ -0,0 +1,9 @@ +#!/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 |