mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2024-12-29 17:28:58 +00:00
17 lines
413 B
Bash
Executable File
17 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION=${1}
|
|
|
|
if ! [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then
|
|
echo "Wrong version number! Only x.y or x.y.z is allowed."
|
|
exit 1
|
|
fi
|
|
|
|
SETUPS=( gevent-all sdk gevent-all-with-abs-gip arduinogip cul868gip roomui
|
|
testgip zigbeegip )
|
|
|
|
for setup in "${SETUPS[@]}"; do
|
|
sed -i -re 's/(^\W*SETUP_VERSION\W*=\W*")[0-9]+\.[0-9]+(\.[0-9]+)?"/\1'${VERSION}'"/' setup-${setup}.py
|
|
done
|
|
|