~ubuntu-branches/ubuntu/saucy/dkms/saucy

« back to all changes in this revision

Viewing changes to debian/scripts/dh_dkms

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2010-03-28 00:45:36 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100328004536-vuxu3pxjcxhtae6d
Tags: 2.1.1.2-2fakesync1
Fakesync with debian (LP: #534843)

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
=item B<-V>, B<-V> I<version>
52
52
 
53
 
Set C<PACKAGE_VERSION> in F<dkms.conf> to the given I<version> or, if none is
54
 
given, default to the upstream version of the current package.
 
53
If C<PACKAGE_VERSION> in F<dkms.conf> is set to C<#MODULE_VERSION#>, set it to
 
54
the given I<version> or, if none is given, default to the upstream version of
 
55
the current package. Otherwise, leave the value specified in F<dkms.conf>.
55
56
 
56
57
=item B<--> I<file>
57
58
 
108
109
                $name = $ARGV[0];
109
110
        }
110
111
        else {
111
 
                exit;
 
112
                next;
112
113
        }
113
114
        verbose_print "installing $name as dkms.conf";
114
115
 
149
150
        autoscript($package, "prerm", "prerm-dkms",
150
151
            "s/#MODULE_NAME#/$package_name/;s/#MODULE_VERSION#/$package_version/");
151
152
        autoscript($package, "postinst", "postinst-dkms",
152
 
            "s/#MODULE_NAME#/$package_name/");
 
153
            "s/#MODULE_NAME#/$package_name/;s/#MODULE_VERSION#/$package_version/");
153
154
        doit("install", "-p", "-D", "-m644", "$name", "$tmp/usr/src/$package_name-$package_version/dkms.conf");
154
155
}
155
156