Logoj0ke.net Open Build Service > Projects > GFS > kernel-source > get_release_number.sh
Sign Up | Log In

File get_release_number.sh of Package kernel-source (Revision dd9fdb8e2db553d4e73e2da013a5c790)

Currently displaying revision dd9fdb8e2db553d4e73e2da013a5c790, show latest

x
 
1
#! /bin/sh
2
prefix=
3
suffix=
4
if [ "$3" = kernel-dummy -o -n "$suffix" ]; then
5
    [ -n "$suffix" ] || suffix=$2
6
    while [ "$suffix" != "${suffix#[^0-9]*.}" ]; do
7
    suffix=${suffix#[^0-9]*.}
8
    done
9
    echo $prefix$suffix
10
else
11
    echo "pkg:kernel-dummy"
12
fi
13