blob: a3f9a2f6fff36d5b5d5c00e6c94c442533cb89f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
post_install() {
sed -e "s|#?vers : VVV?|#?vers : VVV?\nvers : STA11.7:/usr/share/aster/STA11.7|" \
-i /etc/codeaster/aster
echo
echo " NOTE:"
echo " You can launch code-aster from the command-line using"
echo " 'as_run *.export' or you can use ASTK interface. In the"
echo " latter case - more frequent - you must choose between"
echo " rsh and ssh."
echo " If you choose ssh, follow"
echo " https://wiki.archlinux.org/index.php/Secure_Shell"
echo " to install ssh enabling X11 forwarding."
echo " Command line astk-ssh launches astk."
echo
}
post_upgrade() {
post_remove $1
post_install $1
}
post_remove() {
sed -e ':a;N;$!ba;s|\nvers : STA11.7:/usr/share/aster/STA11.7||g' \
-i /etc/codeaster/aster
}
op=$1
shift
$op $*
|