2024-06-12 11:05:23 +02:00
#!/bin/bash
2024-06-12 14:30:47 +02:00
COMMIT = " $( git describe --always) "
echo "package de.com.baseband.client.util.data;" > Client/src/main/java/de/com/baseband/client/util/data/GitHash.java
echo "package de.com.baseband.launcher.util;" > Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java
( cat | tee -a Client/src/main/java/de/com/baseband/client/util/data/GitHash.java Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java) << EOF
2024-06-12 11:20:48 +02:00
public class GitHash {
2024-06-12 14:30:47 +02:00
public static final String GIT_HASH = " $COMMIT " ;
2024-06-12 11:20:48 +02:00
}
EOF
2024-06-12 14:30:47 +02:00
echo " $COMMIT " > loader.version