[vdr] [ANNOUNCE] VDR developer version 1.3.31

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Wed Aug 31 11:23:38 CEST 2005


Lauri Tischler wrote:
> Klaus Schmidinger wrote:
> 
>> Ok, and now the whole thing in Makefile syntax, please... ;-)
> 
> 
> # DVBDIR=/very/odd/place
> ifndef DVBDIR
> DVBDIR=$(shell ./getdvbdir.sh)
> endif
> 
> ---  getdvbdir.sh ---
> #!/bin/bash
> case `uname -r` in
>         2.[01234].*)
>                 DVBDIR=../DVB
>                 ;;
>         *)
>                 DVBDIR=lib/modules/`uname -r`/build
>                 ;;
> esac
> echo $DVBDIR

Ugly, very ugly - requires an extra file...

Klaus



More information about the vdr mailing list