Correction du bogue dans l'installation et la suppression des liens
[modeles-openoffice.git] / auf-modeles-openoffice / debian / prerm
CommitLineData
7e86542e
P
1#!/bin/sh
2
3set -e
4
5TEMPLATEDIR="/usr/share/modeles-openoffice/AuF"
6
7if [ "$1" = "remove" -o "$1" = "purge" ] ; then
8 cd "$TEMPLATEDIR"
9 for dir in \
cb34772e
P
10 /usr/lib/openoffice/basis* \
11 /opt/openoffice.org/basis*
7e86542e 12 do
cb34772e
P
13 test -d $dir || continue
14 dir=$dir/share/template/fr
412d8b02
P
15 for file in *.otp
16 do
cb34772e 17 test -L $dir/presnt/$file && rm $dir/presnt/$file
412d8b02 18 done
7e86542e
P
19 for file in *
20 do
21 test -L $dir/AuF/$file && rm $dir/AuF/$file
22 done
23 rmdir $dir/AuF >/dev/null 2>&1 || true
24 done
25fi
26
27#DEBHELPER#
28
29exit 0