forked from markus7017/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 2
/
convert_v2_v3.sh
executable file
·15 lines (14 loc) · 1.28 KB
/
convert_v2_v3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
find . -name *.java -exec sed -i '' -e "s/SmartHomeUnits.PERCENT/Units.PERCENT/g" {} \;
find . -name *.java -exec sed -i '' -e "s/SmartHomeUnits.WATT/Units.WATT/g" {} \;
find . -name *.java -exec sed -i '' -e "s/SmartHomeUnits.LITRE/Units.LITRE/g" {} \;
find . -name *.java -exec sed -i '' -e "s/SmartHomeUnits.AMPERE/Units.AMPERE/g" {} \;
find . -name *.java -exec sed -i '' -e "s/SmartHomeUnits.KILOWATT_HOUR/Units.KILOWATT_HOUR/g" {} \;
find . -name *.java -exec sed -i '' -e "s/org.eclipse.smarthome.core.library.unit.SmartHomeUnits/org.openhab.core.library.unit.Units/g" {} \;
find . -name *.java -exec sed -i '' -e "s/tec.uom.se.unit.Units/org.openhab.core.library.unit.Units/g" {} \;
find . -name *.java -exec sed -i '' -e "s/, SmartHomeUnits/, Units/g" {} \;
find . -name *.java -exec sed -i '' -e "s/org.eclipse.smarthome.core/org.openhab.core/g" {} \;
find . -name *.java -exec sed -i '' -e "s/org.eclipse.smarthome/org.openhab.core/g" {} \;
find . -name *.java -exec sed -i '' -e "s/2010-2020/2010-2021/g" {} \;
find . -name *.java -exec sed -i '' -e "s/public V put(K key, @Nullable V value)/public @Nullable V put(K key, V value)/g" {} \;
find . -name *.java -exec sed -i '' -e "s/public V putIfAbsent(K key, V value)/public @Nullable V putIfAbsent(K key, V value)/g" {} \;
mvn spotless:apply