Commit | Line | Data |
---|---|---|
7e86542e P |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | TEMPLATEDIR="/usr/share/modeles-openoffice/AuF" | |
6 | ||
7 | if [ "$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 | |
2ce09ebe | 20 | test -d $dir/presnt || continue |
412d8b02 P |
21 | for file in *.otp |
22 | do | |
cb34772e | 23 | test -L $dir/presnt/$file || ln -s $TEMPLATEDIR/$file $dir/presnt/ |
412d8b02 | 24 | done |
7e86542e P |
25 | done |
26 | fi | |
27 | ||
28 | #DEBHELPER# | |
29 | ||
30 | exit 0 |