[ gpsdrive ] improvement to debian build rules
Hamish
hamish_b at yahoo.com
Tue Jan 27 14:42:15 AKST 2009
> > what's ubuntu's equivalent of /etc/debian_version ?
> >
> > if [ -e /etc/debian_version ] ; then
> > # is debian
> > if [ `cat /etc/debian_version` = "4.0" ] ; then
> > echo "is etch"
> > fi
> > else
> > ubuntu...
> > fi
>
> That was my first guess, but the ubuntu here also has a
> /etc/debian_version File :-(
>
> debian-etch-32: 4.0
> debian-lenny-32: 5.0
> ubuntu-intrepid-32: lenny/sid
> ubuntu-dapper-32: testing/unstable
is there a /etc/ubuntu_version file we could test for first?
Hamish
More information about the GPSdrive
mailing list