home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / metacity-common.postinst < prev    next >
Encoding:
Text File  |  2006-08-22  |  1.2 KB  |  36 lines

  1. #!/bin/sh -e
  2.  
  3. # clean up old catalogs installed by the metacity package in the past
  4. # (to be dropped after etch releases)
  5. /usr/sbin/install-sgmlcatalog --quiet --remove metacity || true
  6. /usr/sbin/update-catalog --quiet --remove --super /etc/sgml/metacity.cat || true
  7. rm -f /etc/sgml/metacity.cat /etc/sgml/metacity.cat.old
  8.  
  9. # Automatically added by dh_installcatalogs
  10. if [ "$1" = "configure" ]; then
  11.     rm -f /etc/sgml/metacity-common.cat
  12.     for ordcat in /usr/share/sgml/metacity-common/catalog; do
  13.         update-catalog --quiet --add /etc/sgml/metacity-common.cat ${ordcat}
  14.     done
  15.     update-catalog --quiet --add --super /etc/sgml/metacity-common.cat
  16. fi
  17. # End automatically added section
  18. # Automatically added by dh_gconf
  19. if [ "$1" = "configure" ]; then
  20.     gconf-schemas --register metacity.schemas 
  21. fi
  22. # End automatically added section
  23. # Automatically added by dh_installcatalogs
  24. if [ "$1" = "configure" ]; then
  25.     rm -f /etc/sgml/metacity-common.cat
  26.     for ordcat in /usr/share/sgml/metacity-common/catalog; do
  27.         update-catalog --quiet --add /etc/sgml/metacity-common.cat ${ordcat}
  28.     done
  29.     update-catalog --quiet --add --super /etc/sgml/metacity-common.cat
  30. fi
  31. # End automatically added section
  32.  
  33.  
  34. exit 0
  35.  
  36.