author | Sylvain Thenault <sylvain.thenault@logilab.fr> |
Fri, 19 Dec 2008 15:16:09 +0100 | |
changeset 237 | 3df2e0ae2eba |
parent 233 | cd2f4ef6af37 |
permissions | -rw-r--r-- |
0 | 1 |
#! /bin/sh -e |
2 |
||
3 |
if [ "$1" = configure ]; then |
|
4 |
# XXX bw compat: erudi -> cubicweb migration |
|
5 |
if [ -e "/usr/share/erudi/templates/" ]; then |
|
233
cd2f4ef6af37
should skip shared directory
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
6 |
# skip the "shared" subdirectory by moving it first, restoring it later |
cd2f4ef6af37
should skip shared directory
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
7 |
mv /usr/share/erudi/templates/shared /usr/share/erudi/ |
0 | 8 |
mv /usr/share/erudi/templates/* /usr/share/cubicweb/cubes/ |
233
cd2f4ef6af37
should skip shared directory
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
9 |
mv /usr/share/erudi/shared /usr/share/erudi/templates |
0 | 10 |
echo 'moved /usr/share/erudi/templates/* to /usr/share/cubicweb/cubes/' |
11 |
fi |
|
12 |
fi |
|
13 |
#DEBHELPER# |
|
14 |
||
15 |
exit 0 |