X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=ian-dotfiles.git;a=blobdiff_plain;f=infra%2Fmakelinks;h=20faafc592912d757c74acf5b4de56e381d45e2e;hp=f4d502c465045d940bdb2b1c9f5942b813acbb04;hb=4e6e460b957774e2e7f60d0fbd8de9e84ca7f980;hpb=e466653b0879184e26ae58051e0aa9c158efdcf6 diff --git a/infra/makelinks b/infra/makelinks index f4d502c..20faafc 100755 --- a/infra/makelinks +++ b/infra/makelinks @@ -109,15 +109,22 @@ process_object () { dots=$( find dot -mindepth 1 -maxdepth 1 -name '[0-9a-zA-Z]*[0-9a-zA-Z]' ) -for dot in $dots; do - ours="$dot" - underhome=".${dot#dot/}" +for ours in $dots; do + underhome=".${ours#dot/}" + process_object +done + +nondots=$( find home -mindepth 1 -maxdepth 1 -name '[0-9a-zA-Z]*[0-9a-zA-Z]' ) + +for ours in $nondots; do + underhome="${ours#home/}" process_object done brokens=$( cd $HOME - find -L .[0-9a-zA-Z]* -maxdepth 0 -xdev -type l -lname "$basepath/dot/*" + find -L .[0-9a-zA-Z]* -maxdepth 0 -xdev -type l \ + \( -lname "$basepath/dot/*" -o -lname "$basepath/home/*" \) ) for underhome in $brokens; do inhome="$HOME/$underhome"