On 09/02/2023 12:54, Takashi Yano via Cygwin-apps wrote:
NAME="moc"
VERSION=2.6.r3005
RELEASE=1
[...]
SVN_URI="svn://svn.daper.net/moc/trunk"
SVN_REV="3005"
inherit svn

You could (and probably should) write this as

SVN_REV=${VERSION##*.r}

so you don't have to remember to update it in both places.

(See 'Remove matching prefix pattern' in the section 'Parameter Expansion' in 'man bash')


Otherwise, looks good.

Reply via email to