summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/scripts/mklinks
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/scripts/mklinks')
-rwxr-xr-xusr.sbin/xntpd/scripts/mklinks9
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
OpenPOWER on IntegriCloud