File get_release_number.sh of Package kernel-source (Revision dd9fdb8e2db553d4e73e2da013a5c790)
Currently displaying revision dd9fdb8e2db553d4e73e2da013a5c790, show latest
x
1
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