File: gnumeric-common.postinst

package info (click to toggle)
gnumeric 1.6.3-5.1%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 70,644 kB
  • ctags: 18,973
  • sloc: ansic: 204,271; xml: 47,128; sh: 8,917; makefile: 2,540; yacc: 1,137; perl: 179; python: 86
file content (19 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
set -e

for s in gnumeric-dialogs.schemas gnumeric-general.schemas gnumeric-plugins.schemas ; do
	f=/etc/gconf/schemas/$s
	if [ -e $f ] ; then
		echo "Obsoleted conffile $f found... "
		if grep -q '^'$(md5sum $f | sed -e 's/  .*$//')'$' /usr/share/gnumeric/$s.md5sum ; then
			echo "... no local changes detected. Removing."
			rm -f $f
		else
			echo "... locally modified. Leaving as-is."
		fi
	fi
done

#DEBHELPER#

exit 0