File: quodlibet-plugins.preinst

package info (click to toggle)
quodlibet-plugins 20080601-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 352 kB
  • ctags: 725
  • sloc: python: 4,001; makefile: 23; sh: 11
file content (20 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

# quodlibet plugins directory
QL_PLD=/usr/share/quodlibet/plugins

# we want to provide a clean upgrade path from previous versions
PYC_FILES=`find ${QL_PLD} -name "*.pyc"`
# don't touch .pyc files that are created by the quodlibet package
PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/editing.pyc,,`
PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/events.pyc,,`
PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/__init__.pyc,,`
PYC_FILES=`echo ${PYC_FILES} | sed -e s,${QL_PLD}/songsmenu.pyc,,`

for i in ${PYC_FILES}
do
    rm $i
done

#DEBHELPER#