gen_hash and release scripts
This commit is contained in:
parent
fce00f8c35
commit
c97aaf6098
2 changed files with 19 additions and 0 deletions
|
@ -1,2 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat > Client/src/main/java/de/com/baseband/client/util/data/GitHash.java << EOF
|
||||
package de.com.baseband.client.util.data;
|
||||
|
||||
public class GitHash {
|
||||
|
||||
public static final String GIT_HASH = "$(git describe --always)";
|
||||
}
|
||||
EOF
|
||||
|
|
11
scripts/release.sh
Normal file
11
scripts/release.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if ! git diff-index --quiet --cached HEAD -- ; then
|
||||
echo "Cannot release dirty git tree. Commit your changes to main first."
|
||||
exit 1
|
||||
fi
|
||||
git push
|
||||
git checkout release
|
||||
git merge main
|
||||
git push
|
||||
git checkout main
|
Loading…
Add table
Reference in a new issue