#!/bin/sh

set -e

if test "$1" = upgrade &&
	test -e /etc/gprofng.rc.dpkg-old &&
	! test -e /etc/gprofng.rc &&
	dpkg --compare-cversions "$2" lt "2.43.90"
then
	# Moving gprofng.rc from binutils-common to binutils.
	mv /etc/gprofng.rc.dpkg-old /etc/gprofng.rc
fi

exit 0
