14 lines
302 B
Bash
14 lines
302 B
Bash
#! /bin/sh
|
|
prefix=rc6.git1.
|
|
suffix=
|
|
commit=49be8e38
|
|
if [ "$3" = kernel-dummy -o -n "$suffix" ]; then
|
|
[ -n "$suffix" ] || suffix=$2
|
|
while [ "$suffix" != "${suffix#[^0-9]*.}" ]; do
|
|
suffix=${suffix#[^0-9]*.}
|
|
done
|
|
echo $prefix$suffix${commit:+_}$commit
|
|
else
|
|
echo "pkg:kernel-dummy"
|
|
fi
|