]> git.donarmstrong.com Git - debhelper.git/blob - autoscripts/preinst-moveconffile
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / preinst-moveconffile
1 if [ "$1" = install ] || [ "$1" = upgrade ]; then
2         if [ -e "#OLD#" ]; then
3                 if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
4                      "`dpkg-query -W -f='${Conffiles}' #PACKAGE# | sed -n -e \"\\\\' #OLD# '{s/ obsolete$//;s/.* //p}\"`" ]
5                 then
6                         rm -f "#OLD#"
7                 fi
8         fi
9 fi