This commit is contained in:
Jakub Chrzanowski
2021-09-02 15:44:46 +02:00
committed by Jakub Chrzanowski
parent 9ed85a5ab3
commit b1f751c5f7
10 changed files with 107 additions and 36 deletions

View File

@@ -44,13 +44,12 @@ jobs:
find src -type f -exec sed -i "s/Template/$NAME/g" {} +
find src -type f -exec sed -i "s/JetBrains/$ACTOR/g" {} +
# Remove lines marked with #REMOVE-ON-CLEANUP#
find . -type f -exec sed -i '/#REMOVE-ON-CLEANUP#/d' {} +
# Move content
mkdir -p src/main/kotlin/${GROUP//.//}
mkdir -p src/test/kotlin/${GROUP//.//}
cp -R .github/template-cleanup/* .
cp -R src/main/kotlin/org/jetbrains/plugins/template/* src/main/kotlin/${GROUP//.//}/
cp -R src/test/kotlin/org/jetbrains/plugins/template/* src/test/kotlin/${GROUP//.//}/
# Cleanup
rm -rf \
@@ -59,6 +58,7 @@ jobs:
.github/workflows/template-cleanup.yml \
.idea/icon.png \
src/main/kotlin/org \
src/test/kotlin/org \
CODE_OF_CONDUCT.md \
LICENSE