#!/bin/bash
rsync -av --delete crux.nu::ports/crux-2.4/xorg .
cd xorg
cd mesa3d
sed -i "s|http://dl.|http://kent.dl.|" -i Pkgfile
cd ../xorg
	for i in ../*; do
		cd "$i"
		sed -i "s|--mandir=/usr/man||" Pkgfile
		sed -i "s|--prefix=/usr|--prefix=/usr --mandir=/usr/share/man|" Pkgfile
		if (grep -q "usr/man" .footprint); then
			if (! grep -q "usr/share" .footprint); then
				echo "drwxr-xr-x	root/root	usr/share/" >> .footprint
			fi
		fi
		sed -i "s|usr/man|usr/share/man|" .footprint
	done
cd ..
cd ..
#rsync -av --delete morpheus.net::gnome/tags/current gnome-crux

