make numbering check more flexible

This commit is contained in:
marschap
2006-04-12 09:55:39 +00:00
parent 8ec9359ac9
commit fd2ed040f4
+1 -1
View File
@@ -61,7 +61,7 @@ for dir in debian scripts/debian ; do
if [ -d i"$dir" ] && [ -e "$dir/changelog" ; then
cp $dir/changelog $dir/changelog.temp
${PERL} -MPOSIX -i -p -e '$date = strftime("%Y%m%d", localtime);
s/\(0\.4\.99\+cvs\d{8}\)/(0.4.99+cvs$date)/i if ($. == 1);' \
s/\((\d\.\d\.\d{1,2})\+cvs\d{8}\)/($1+cvs$date)/i if ($. == 1);' \
$dir/changelog
fi
done