Skip to content

Commit 73e10fc

Browse files
committed
wiringPi: newVersion: Fix for adding minor-fixed version
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
1 parent d0b2584 commit 73e10fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

newVersion

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ echo Updating to version: `cat VERSION`
2828
rm -f version.h
2929
vMaj=`cut -d. -f1 VERSION`
3030
vMin=`cut -d. -f2 VERSION`
31+
vMinFix=$(cut -d. -f3 VERSION)
3132
echo "#define VERSION \"`cat VERSION`\"" > version.h
3233
echo "#define VERSION_MAJOR $vMaj" >> version.h
33-
echo "#define VERSION_MINOR \"$vMin\"" >> version.h
34+
echo "#define VERSION_MINOR \"$vMin.$vMinFix\"" >> version.h
3435

3536
rm -f debian-template/wiringPi/DEBIAN/control
3637
cat > debian-template/wiringPi/DEBIAN/control <<EOF

0 commit comments

Comments
 (0)