diff options
author | wollman <wollman@FreeBSD.org> | 1993-12-21 18:36:48 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-12-21 18:36:48 +0000 |
commit | 8e51e9f1429efc498f923bce8b25b20f47d7c075 (patch) | |
tree | 9db10264d45dc397a38276190303093a450d769e /usr.sbin/xntpd/scripts/mklinks | |
download | FreeBSD-src-8e51e9f1429efc498f923bce8b25b20f47d7c075.zip FreeBSD-src-8e51e9f1429efc498f923bce8b25b20f47d7c075.tar.gz |
xntpd 3.3b from UDel
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 |