File: gnuplot-x11.postinst

package info (click to toggle)
gnuplot 5.0.5%2Bdfsg1-6%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,800 kB
  • ctags: 8,062
  • sloc: ansic: 78,152; cpp: 6,981; makefile: 2,075; sh: 1,343; lisp: 655; perl: 302; awk: 235; pascal: 194; tcl: 88; python: 46
file content (15 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" != "upgrade"]; then
    update-alternatives --remove gnuplot4 /usr/bin/gnuplot4-x11

    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot-x11 90 \
      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
      /usr/share/man/man1/gnuplot-x11.1.gz \
      --slave /usr/share/gnuplot/gnuplot.gih gnuplot.gih \
      /usr/share/gnuplot/gnuplot-x11.gih
fi

#DEBHELPER#