view tools/fix_lib_links.sh @ 421:c685b3c5f40b

Update MPD's Makefile.
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 14 Sep 2012 02:20:50 +0300
parents 91ceb933eeff
children
line wrap: on
line source
#!/bin/sh



for link in `find . -type l` ; do 
	lk=`readlink $link`; 
	TEST=`echo $lk | sed -E "s/^(.).*/\\1/"` ;
	if [ "x${TEST}" = "x/" ] ; then
		new=`echo $lk | sed "s/^\//\.\.\/\.\.\//"`; 
		echo ln -sf $new $link ;
		ln -sf $new $link ;
	fi
done