File: python-epydoc.preinst

package info (click to toggle)
epydoc 2.1-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,364 kB
  • ctags: 2,878
  • sloc: python: 9,010; makefile: 85; sh: 73
file content (19 lines) | stat: -rw-r--r-- 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# The code below is based in part on the preinst for the linda package.

set -e

EPYDOCDIR='/usr/lib/site-python/epydoc'

if [ "$1" = upgrade ]; then
   rm -f ${EPYDOCDIR}/*.pyc
   rm -f ${EPYDOCDIR}/markup/*.pyc
   rm -f ${EPYDOCDIR}/test/*.pyc
   rm -f ${EPYDOCDIR}/*.pyo
   rm -f ${EPYDOCDIR}/markup/*.pyo
   rm -f ${EPYDOCDIR}/test/*.pyo
fi

#DEBHELPER#