File: gfortran-4.4-doc.postinst

package info (click to toggle)
gcc-4.4-doc-non-dfsg 4.4.7-3
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 6,684 kB
  • sloc: sh: 917; ada: 828; perl: 460; makefile: 138; cpp: 14
file content (14 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

# Replace documentation directory with symlink
docdir="/usr/share/doc/gfortran-4.4-doc"
if [ "$1" = "configure" ] && [ -d "$docdir" ] && [ ! -L "$docdir" ]; then
    if rmdir "$docdir" 2>/dev/null; then
        ln -sf "gcc-4.4-doc" "$docdir"
    fi
fi

#DEBHELPER#

exit 0