File: fixversion.sh

package info (click to toggle)
rkflashtool 0~20160324-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 152 kB
  • sloc: ansic: 964; sh: 179; makefile: 92
file content (8 lines) | stat: -rwxr-xr-x 269 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#! /bin/sh

MAJOR=`grep MAJOR version.h | { read A B C; echo $C; }`
MINOR=`grep MINOR version.h | { read A B C; echo $C; }`

for i in rkparameters rkparametersblock rkmisc rkpad rkunsign ; do
    sed -i "s/^\(MAJOR\)=.*/\1=$MAJOR/; s/.*\(MINOR\)=.*/\1=$MINOR/" $i
done