File: gnuplot-x11.postinst

package info (click to toggle)
gnuplot 4.6.6-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 15,640 kB
  • sloc: ansic: 85,383; cpp: 6,743; lisp: 3,999; makefile: 2,126; sh: 976; objc: 647; asm: 539; perl: 310; awk: 235; pascal: 194; csh: 179; tcl: 88; python: 46
file content (17 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot4-x11 30 \
      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
      /usr/share/man/man1/gnuplot4-x11.1.gz \
      --slave /usr/share/gnuplot/gnuplot.gih gnuplot4.gih \
      /usr/share/gnuplot/gnuplot4-x11.gih

    update-alternatives --install /usr/bin/gnuplot4 gnuplot4 /usr/bin/gnuplot4-x11 30 \
      --slave /usr/share/man/man1/gnuplot4.1.gz gnuplot4.1.gz \
      /usr/share/man/man1/gnuplot4-x11.1.gz
fi

#DEBHELPER#