This file is indexed.

/usr/lib/emacsen-common/packages/install/slime is in slime 1:20111027-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/slime

# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.

FLAVOR=$1
PACKAGE=slime

if [ "${FLAVOR}" != emacs23 ] && [ "${FLAVOR}" != emacs22 ] && [ "${FLAVOR}" != xemacs21 ] && [ "${FLAVOR}" != emacs-snapshot ]; then
  exit 0;
fi

echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}

#FLAVORTEST=`echo $FLAVOR | cut -c-6`
#if [ ${FLAVORTEST} = xemacs ] ; then
#    SITEFLAG="-no-site-file"
#else
#    SITEFLAG="--no-site-file"
#fi
FLAGS="${SITEFLAG} -q -batch -l path.el"

ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}

# Install-info-altdir does not actually exist. 
# Maybe somebody will write it.
if test -x /usr/sbin/install-info-altdir; then
    echo install/${PACKAGE}: install Info links for ${FLAVOR}
    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
fi

# in case of a failed installation .el symlinks are left behind, remove them
if [ -d "${ELCDIR}" ] ; then
  if [ "${ELCDIR}" = "" ] ; then
    echo ELCDIR is empty, emergency stop
    exit 1
  else
    # we use find to protect against 'bad' filenames
    find "${ELCDIR}" -maxdepth 1 -name "*.el" -print0 | \
      xargs -0 rm || true
    rm -f "${ELCDIR}/ChangeLog"
  fi
fi

if [ -d "${ELCDIR}/contrib" ] ; then
  if [ "${ELCDIR}" = "" ] ; then
    echo ELCDIR is empty, emergency stop
    exit 1
  else
    # we use find to protect against 'bad' filenames
    find "${ELCDIR}/contrib" -maxdepth 1 -name "*.el" -print0 | \
      xargs -0 rm || true
  fi
fi

install -m 755 -d ${ELCDIR}
if [ "${FLAVOR}" != xemacs21 ]; then
  install -m 755 -d ${ELCDIR}/contrib
fi
cd ${ELDIR}
FILES=`echo *.el`
cp ${FILES} ${ELCDIR}

if [ "${FLAVOR}" != xemacs21 ]; then
  cd ${ELDIR}/contrib
  CFILES=`echo *.el`
  cp ${CFILES} ${ELCDIR}/contrib/
fi

cd ${ELCDIR}

cat << EOF > path.el
(setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF
if [ "${FLAVOR}" != xemacs21 ]; then
  ${FLAVOR} ${FLAGS} `for i in ${FILES} ; do echo -l ${ELCDIR}/$i ; done` \
                     `for i in ${CFILES} ; do echo -l ${ELCDIR}/contrib/$i ; done` \
                      -f batch-byte-compile \
                      ${FILES} `for i in ${CFILES} ; do echo contrib/$i ; done`
fi
rm -f *.el path.el

## while in ${ELCDIR}

## symlink the source files into the ${ELCDIR}
## so that `find-library' will find them
cd ${ELCDIR}
for FILE in $FILES ; do 
  if ! [ -e $FILE ];  then
  ## note that these will not be 'relative' symlinks.
    ln -s ${ELDIR}/$FILE .
  fi
done

if [ "${FLAVOR}" != xemacs21 ]; then
  cd ${ELCDIR}/contrib
  for FILE in $CFILES ; do 
    if ! [ -e $FILE ];  then
    ## note that these will not be 'relative' symlinks.
      ln -s ${ELDIR}/contrib/$FILE .
    fi
  done
fi
exit 0