lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 23 lines 643 B view raw
1# This setup hook moves $out/{man,doc,info} to $out/share; moves 2# $out/share/man to $man/share/man; and moves $out/share/doc to 3# $man/share/doc. 4 5preFixupHooks+=(_moveToShare) 6 7_moveToShare() { 8 forceShare=${forceShare:=man doc info} 9 if [ -z "$forceShare" -o -z "$out" ]; then return; fi 10 11 for d in $forceShare; do 12 if [ -d "$out/$d" ]; then 13 if [ -d "$out/share/$d" ]; then 14 echo "both $d/ and share/$d/ exist!" 15 else 16 echo "moving $out/$d to $out/share/$d" 17 mkdir -p $out/share 18 mv $out/$d $out/share/ 19 fi 20 fi 21 done 22} 23