Correction du bogue dans l'installation et la suppression des liens
[modeles-openoffice.git] / auf-modeles-openoffice / debian / postinst
CommitLineData
7e86542e
P
1#!/bin/sh
2
3set -e
4
5TEMPLATEDIR="/usr/share/modeles-openoffice/AuF"
6
7if [ "$1" = "configure" -o "$1" = "upgrade" ]; 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
7e86542e
P
15 mkdir -p $dir/AuF
16 for file in *
17 do
18 test -L $dir/AuF/$file || ln -s $TEMPLATEDIR/$file $dir/AuF/
19 done
412d8b02
P
20 for file in *.otp
21 do
cb34772e 22 test -L $dir/presnt/$file || ln -s $TEMPLATEDIR/$file $dir/presnt/
412d8b02 23 done
7e86542e
P
24 done
25fi
26
27#DEBHELPER#
28
29exit 0