updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / gnuplot-cvs / gnuplot-cvs.install
blobc2cd96c6d256b49fe1d9fdf99e30dbc33426f6c7
1 info_dir=/usr/share/info
2 info_files=(gnuplot.info.gz)
4 post_install() {
5   if [ -f /usr/bin/mktexlsr ]; then
6     echo "Updating TeX tree..."
7     mktexlsr
8   fi
9   for f in ${info_files[@]}; do
10     install-info ${info_dir}/$f ${info_dir}/dir 2> /dev/null
11   done
14 post_upgrade() {
15   post_install $1
18 pre_remove() {
19  for f in ${info_files[@]}; do
20     install-info --delete ${info_dir}/$f ${info_dir}/dir 2> /dev/null
21   done
24 post_remove() {
25   if [ -f /usr/bin/mktexlsr ]; then
26     echo "Updating TeX tree..."
27     mktexlsr
28   fi