[MPlayer-users] Re: mga_vid install doc

Sven Hartge hartge at ds9.argh.org
Wed Dec 26 01:18:35 CET 2001


Jukka Tastula <jukka.tastula at kotinet.com> wrote:

> +KVER = $(shell cat /usr/src/linux/Makefile | grep 'VERSION = ' | cut -d' ' -f3)
> +KPAT = $(shell cat /usr/src/linux/Makefile | grep 'PATCHLEVEL = ' | cut -d' ' -f3)
> +KSUB = $(shell cat /usr/src/linux/Makefile | grep 'SUBLEVEL = ' | cut -d' ' -f3)
> +KEXT = $(shell cat /usr/src/linux/Makefile | grep 'EXTRAVERSION = ' | cut -d' ' -f3)
> +MDIR = /lib/modules/$(KVER).$(KPAT).$(KSUB)$(KEXT)/misc


Umm, DON'T use the thins in /usr/src/linux. For example, I dont have
any kernel source located there, as I compile as user.

And: Don't assume the version sitting in /usr/src/linux is the version
currently running.

Better use:

MDIR = /lib/modules/`uname -r`/misc

This avoids all this nasty and error-prone grepping you are doing.

S°

-- 
BOFH excuse #200:

The monitor needs another box of pixels.




More information about the MPlayer-users mailing list