10 lines
199 B
Bash
10 lines
199 B
Bash
#! /bin/sh
|
|
prefix=rc8.
|
|
suffix=
|
|
commit=808de9df
|
|
[ -n "$suffix" ] || suffix=$2
|
|
while [ "$suffix" != "${suffix#[^0-9]*.}" ]; do
|
|
suffix=${suffix#[^0-9]*.}
|
|
done
|
|
echo $prefix$suffix${commit:+_}$commit
|