Created
February 18, 2020 21:19
-
-
Save hanslovsky/76de90e39e9a0e4f49d39d485afff641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ROOT_DIR="$HOME/workspace/paintera/paintera" | |
JAVA_SRC="$ROOT_DIR/src/main/java" | |
KOTLIN_SRC="$ROOT_DIR/src/main/kotlin" | |
cd $JAVA_SRC | |
FILES=$(find . -type f -name '*kt') | |
cd $ROOT_DIR | |
for f in $FILES; do | |
SOURCE="$JAVA_SRC/$f" | |
TARGET="$KOTLIN_SRC/$f" | |
echo $SOURCE $TARGET | |
mkdir -p `dirname $TARGET` | |
git mv $SOURCE $TARGET | |
mvn package | |
if [ "$?" -ne "0" ]; then | |
echo 6 | |
echo $SOURCE | |
echo "BREAKING OUT OF LOOP" | |
break | |
fi | |
done | |
## BAD FILES SO FAR: | |
## org/janelia/saalfeldlab/paintera/config/input/KeyAndMouseConfigNode.kt | |
## org/janelia/saalfeldlab/paintera/config/input/KeyAndMouseConfig.kt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason, these files needed to be modified to fix compilation errors: