openhab-core/notes/migration.sh
Markus Rathgeb a37cceab67 mavenize openHAB and integrate mavenized ESH repository (#467)
* mavenize openHAB and integrate mavenized ESH repository

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 13:07:31 +01:00

9 lines
283 B
Bash
Executable File

#!/bin/sh
find -type d -name "ESH-INF" | grep -v -e '/target/' -e 'src/main/resources/ESH-INF' | while read ESHINF_DIR; do
PROJECT_DIR="$(dirname "${ESHINF_DIR}")"
mkdir -p "${PROJECT_DIR}/src/main/resources"
mv "${ESHINF_DIR}" "${PROJECT_DIR}/src/main/resources"
done