# # # patch "install" # from [ecc1c4137cf410542a34e3d0263acb564cd55cc7] # to [d9830ebcbb0a200ca8ce9e09d77913d7a9889ffb] # ============================================================ --- install ecc1c4137cf410542a34e3d0263acb564cd55cc7 +++ install d9830ebcbb0a200ca8ce9e09d77913d7a9889ffb @@ -18,8 +18,13 @@ umask 002 mkdir -p $PROJDIR/ mkdir -p $GRAPHDIR/ - rm -rf $WWWDIR - cp -r www/ $WWWDIR + + mkdir -p $WWWDIR/ + # sort -r is a trick to hopefully get the longest paths first + find $WWWDIR -type d | grep -v "$WWWDIR/projects" | sort -r | \ + while read D; do rm -f $D/*; rmdir $D 2>/dev/null; done + (cd www; tar -cf - .) | (cd $WWWDIR; tar -xvf -) + ln -s viewmtn/MochiKit/ $WWWDIR/MochiKit ln -s $GRAPHDIR/ $WWWDIR/viewmtn/graph # the webserver needs to be able to link to certain files