~ubuntu-branches/ubuntu/natty/nvidia-cg-toolkit/natty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-10-09 14:35:31 UTC
  • mfrom: (2.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081009143531-rgblh12uerkbstyw
Tags: 2.0.0015.deb2
* Adding Japanese translations. (Closes: #493566)
* Addressing command-with-path-in-maintainer-script lintian warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    configure*)
9
9
    db_get nvidia-cg-toolkit/local
10
10
    if [ -d "$RET" ]; then
11
 
        LOCALDIR="--search-path $RET"
12
 
        INSTALL="true"
 
11
        LOCALDIR="--search-path $RET"
 
12
        INSTALL="true"
13
13
    fi
14
14
    if [ -z "$LOCALDIR" ]; then
15
 
        db_get nvidia-cg-toolkit/httpget
16
 
        if [ "$RET" = "true" ]; then
17
 
            INSTALL=$RET
18
 
            db_get nvidia-cg-toolkit/http_proxy
19
 
            HTTP_PROXY=$RET
20
 
        fi
 
15
    db_get nvidia-cg-toolkit/httpget
 
16
    if [ "$RET" = "true" ]; then
 
17
        INSTALL=$RET
 
18
        db_get nvidia-cg-toolkit/http_proxy
 
19
        if [ $RET ]; then
 
20
            HTTP_PROXY="--proxy $RET"
 
21
        fi
 
22
    fi
21
23
    fi
22
24
    db_get nvidia-cg-toolkit/delete
23
25
    if [ "$RET" = "true" ]; then
24
 
        DELETE="--delete-after"
25
 
    fi
26
 
    
27
 
    if [ "$INSTALL" = "true" ]; then
28
 
        http_proxy=$HTTP_PROXY /usr/sbin/update-nvidia-cg-toolkit \
29
 
            --install $DELETE $LOCALDIR || true
30
 
    fi
 
26
        DELETE="--delete-after"
 
27
    fi
 
28
 
 
29
    { if [ "$INSTALL" = "true" ]; then
 
30
          nvidia-cg-toolkit-installer \
 
31
          --install $DELETE $LOCALDIR $HTTP_PROXY
 
32
      fi
 
33
      if which install-docs >/dev/null 2>&1; then
 
34
          install-docs -i /usr/share/doc-base/nvidia-cg-toolkit
 
35
      fi
 
36
    } || true
31
37
    ;;
32
38
esac
33
39