File: libogre-VERSION.preinst

package info (click to toggle)
ogre-1.9 1.9.0%2Bdfsg1-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 44,372 kB
  • sloc: cpp: 444,393; python: 8,255; ansic: 7,558; lex: 3,681; yacc: 1,589; pascal: 1,061; java: 126; makefile: 69; sh: 40
file content (23 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e


#DEBHELPER#


if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
    dpkg-maintscript-helper rm_conffile /etc/OGRE/plugins.cfg 1.7.3-5~ libogre-1.7.3 -- "$@"
    dpkg-maintscript-helper rm_conffile /etc/OGRE-1.7.3/plugins.cfg 1.7.3-6~ libogre-1.7.3 -- "$@"
fi

# Remove obsolete config files/directories from previous packages.  It doesn't
# work completely with "dpkg-maintscript-helper rm_conffile" because the binary
# .deb package name changes, due to SONAME bumps
rm -f /etc/OGRE/plugins.cfg.dpkg-remove
if [ -d /etc/OGRE-1.7.3 ]; then
    rmdir --ignore-fail-on-non-empty /etc/OGRE-1.7.3
fi
if [ -d /etc/OGRE ]; then
    rmdir --ignore-fail-on-non-empty /etc/OGRE
fi