~ubuntu-branches/ubuntu/raring/x11proto-resource/raring

« back to all changes in this revision

Viewing changes to debian/xsfbs/xsfbs.sh

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Novo
  • Date: 2006-12-19 10:10:45 UTC
  • mfrom: (0.1.3 etch)
  • Revision ID: james.westby@ubuntu.com-20061219101045-b9ag6hhd5oi3krh5
Tags: 1.0.2-4ubuntu1
Fakesync with Debian unstable (different orig.tar.gz)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: shell-lib.sh 586 2005-09-03 18:37:47Z branden $
 
1
# $Id: xsfbs.sh 2295 2006-06-09 02:34:26Z dnusinow $
 
2
 
 
3
# This is the X Strike Force shell library for X Window System package
 
4
# maintainer scripts.  It serves to define shell functions commonly used by
 
5
# such packages, and performs some error checking necessary for proper operation
 
6
# of those functions.  By itself, it does not "do" much; the maintainer scripts
 
7
# invoke the functions defined here to accomplish package installation and
 
8
# removal tasks.
 
9
 
 
10
# If you are reading this within a Debian package maintainer script (e.g.,
 
11
# /var/lib/dpkg)info/PACKAGE.{config,preinst,postinst,prerm,postrm}), you can
 
12
# skip past this library by scanning forward in this file to the string
 
13
# "GOBSTOPPER".
2
14
 
3
15
SOURCE_VERSION=@SOURCE_VERSION@
4
16
OFFICIAL_BUILD=@OFFICIAL_BUILD@
178
190
  # returns what symlink should point to; i.e., what the "sane" answer is
179
191
  # Keep this in sync with the debian/*.links files.
180
192
  # This is only needed for symlinks to directories.
 
193
  #
 
194
  # XXX: Most of these look wrong in the X11R7 world and need to be fixed.
 
195
  # If we've stopped using this function, fixing it might enable us to re-enable
 
196
  # it again and catch more errors.
181
197
  case "$1" in
182
198
    /etc/X11/xkb/compiled) echo /var/lib/xkb ;;
183
199
    /etc/X11/xkb/xkbcomp) echo /usr/X11R6/bin/xkbcomp ;;
238
254
      _possible_culprits=$(ls -1 $_dpkg_info_dir/*.list | egrep -v \
239
255
        "(xbase-clients|x11-common|xfs|xlibs)")
240
256
      if [ -n "$_possible_culprits" ]; then
241
 
        _smoking_guns=$(grep -l "$1" $_possible_culprits)
 
257
        _smoking_guns=$(grep -l "$1" $_possible_culprits || true)
242
258
        if [ -n "$_smoking_guns" ]; then
243
259
          _bad_packages=$(printf "\\n")
244
260
          for f in $_smoking_guns; do
863
879
  make_symlink_sane "$_old" "$_new"
864
880
}
865
881
 
866
 
# vim:set ai et sts=2 sw=2 tw=80:
 
882
# vim:set ai et sw=2 ts=2 tw=80:
 
883
 
 
884
# GOBSTOPPER: The X Strike Force shell library ends here.