16 lines
No EOL
548 B
Bash
16 lines
No EOL
548 B
Bash
#!/bin/bash
|
|
|
|
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
|
|
|
|
public class GitHash {
|
|
|
|
public static final String GIT_HASH = "$COMMIT";
|
|
}
|
|
EOF
|
|
|
|
echo "$COMMIT" > loader.version |