Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > d83c13880f906b8c53a9598014c5e5c3 > files > 2

mplayer-1.0-1.rc4.0.r32675.1mdv2009.1.src.rpm

#!/bin/sh
# -*- Mode: shell-script -*-
# Copyright (C) 2000 by Chmouel Boudjnah <chmouel@mandrakesoft.com>
# Redistribution of this file is permitted under the terms of the GNU 
# Public License (GPL)
## description: 

VERSION=$(sed -n 's/#define.*UTS_RELEASE.*\"\(.*mdk\)\"/\1/p' /usr/src/linux/include/linux/version.h)
[[ -z $VERSION ]] && VERSION=$(uname -r|sed 's/mdk.*$/mdk/')
echo $VERSION