updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aster / aster.install
blob0c1afa02e06f4f1ff8c23db08e008d787712c3e1
1 _installdir=/opt/aster
2 _astkdir=${_installdir}/ASTK
3 _pkgvershort=10.1
5 post_install() {
6   _pythonver=2.6
8   for _FILE in bibpyt commande
9   do
10     /usr/bin/python /usr/lib/python${_pythonver}/compileall.py -f ${_installdir}/STA${_pkgvershort}/${_FILE}
11     /usr/bin/python -O /usr/lib/python${_pythonver}/compileall.py -f ${_installdir}/STA${_pkgvershort}/${_FILE}
12   done
14   sed -e "s|#vers : ?vaster?|vers : STA${_pkgvershort}|g" \
15       -i ${_installdir}/etc/codeaster/aster
17   echo
18   echo " NOTE:"
19   echo " You can launch code-aster from the command-line using"
20   echo " 'as_run *.export' or you can use ASTK interface. In the"
21   echo " latter case - more frequent - you must:"
22   echo " - install xinetd if you want to use rsh (ssh and rsh"
23   echo "   should already be installed if you have installed astk)"
24   echo " - verify that you haven't option 'no-listen' enabled when"
25   echo "   you start X server;"
26   echo " - start xinetd verifying that rsh is available or"
27   echo "   alternatively start ssh if you want to use this."
28   echo " Installing script of astk should have configured astk to be"
29   echo " executed locally."
30   echo
33 post_upgrade() {
34   post_install $1
37 post_remove() {
38   sed -e "s|vers : STA${_pkgvershort}|#vers : ?vaster?|g" \
39       -i ${_installdir}/etc/codeaster/aster
42 op=$1
43 shift
45 $op $*