rpms/empathy/devel empathy-upgrade-haze-profiles.sh,NONE,1.1

Peter Gordon (pgordon) fedora-extras-commits at redhat.com
Thu Aug 14 03:47:51 UTC 2008


Author: pgordon

Update of /cvs/pkgs/rpms/empathy/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15844

Added Files:
	empathy-upgrade-haze-profiles.sh 
Log Message:
Forgot the upgrade script. XD


--- NEW FILE empathy-upgrade-haze-profiles.sh ---
#!/bin/bash
##############################################################################
## Author: Peter Gordon (codergeek42) <peter at thecodergeek.com>
## This script in its entirety is placed into the public domain.
##############################################################################
## This script takes care of updating a user's profiles from the old names used
## by the telepathy-haze-mission-control package to those provided by empathy
## proper. It need only be run ONCE; but will (probably) not harm your account
## configurations if run multiple times. :)
##############################################################################
pushd ~/.mission-control/accounts
	## AIM, ICQ, and Yahoo! IM stuff...
	for HAZE_PROFILE in haze-{aim,icq,yahoo}*; do
		PROFILE=${HAZE_PROFILE/haze-}
		echo "*** DEBUG: Updating profile ${PROFILE}";
		rename 'haze-' '' ${HAZE_PROFILE} 2>/dev/null 
	done

	## Now for the MSN stuff...
	for HAZE_PROFILE in haze-msn*; do
		PROFILE=${HAZE_PROFILE/haze-}
		echo "*** DEBUG: Updating profile ${PROFILE}";
		rename 'haze-msn' 'msn-haze' ${HAZE_PROFILE} 2>/dev/null 
	done

## All done! ^_^
popd





More information about the fedora-extras-commits mailing list