Message ID | 20210122162312.459010-10-apw@canonical.com |
---|---|
State | New |
Headers | show |
Series | LP: #1912803 -- autogenerate Nvidia rules/control | expand |
diff --git a/debian/scripts/gen-rules b/debian/scripts/gen-rules index 710771a..fb8717e 100755 --- a/debian/scripts/gen-rules +++ b/debian/scripts/gen-rules @@ -8,6 +8,11 @@ cat "debian/rules.in" >"debian/rules.gen" : >"debian/control.d/migrate-nvidia" : >"debian/control.d/transitionals-local" +dkms_build_new=$(grep -c 'shift 7' debian/scripts/dkms-build) +if [ "$dkms_build_new" -eq 0 ]; then + sed -i -e '/debian\/scripts\/dkms-build/s/ $(4)//' debian/rules.gen +fi + nvidia_desktop= nvidia_server= while read command arg
Signed-off-by: Andy Whitcroft <apw@canonical.com> --- debian/scripts/gen-rules | 5 +++++ 1 file changed, 5 insertions(+)