aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/_incr_version
blob: 7244d28cb67d2ea601da80e0909313b9eaea6bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -eux
# Written by Nicolas Schodet, who stated the code does not qualify for
# copyright protection.
#
# Only update patch version.
[ ${1%.*} = ${2%.*} ]
a=${1##*.}
b=${2##*.}
sed -i src/c_loader.iom -e "s/\\(FIRMWAREPATCH *\\)$a/\\1$b/"
git add src/c_loader.iom
git commit -m "Change to version ${2}"