~michael-gruz/+junk/freeswitch-sounds-ru-ru-elena

« back to all changes in this revision

Viewing changes to debian/prerm.tmpl

  • Committer: Michael Gruz
  • Date: 2013-10-03 21:04:51 UTC
  • Revision ID: michael-gruz@seznam.cz-20131003210451-x458s3pb79qr7lsz
fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
3
 
##### Author: Travis Cross <tc@traviscross.com>
4
 
 
5
 
set -e
6
 
 
7
 
spath=__SPATH__
8
 
 
9
 
case "$1" in
10
 
  remove|upgrade|deconfigure)
11
 
    for r in 8000 16000 32000 48000; do
12
 
      echo "Removing sounds at $r Hz..." >&2
13
 
      for d in $spath/*; do
14
 
        [ -d $d ] || continue
15
 
        rm -rf $d/$r
16
 
      done
17
 
    done
18
 
    ;;
19
 
  failed-upgrade)
20
 
    ;;
21
 
  *)
22
 
    echo "prerm called with unknown argument \`$1'" >&2
23
 
    exit 1
24
 
    ;;
25
 
esac
26
 
 
27
 
#DEBHELPER#
28
 
exit 0