Created
May 21, 2015 15:40
-
-
Save aalemayhu/92ab3d8c9386ff6d6bac to your computer and use it in GitHub Desktop.
ease my life when generating release notes for android apps
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
#!/bin/bash | |
src="$1" | |
dst="$2" | |
f=/tmp/$dst.md | |
echo "\`\`\`" > $f | |
echo "Hei," >> $f | |
echo "vedlagt er $app_name versjon $dst. Følgende nevneverdige endring har blitt gjort:" >> $f | |
echo >> $f | |
for r in `git rev-list $src..$dst`; | |
do | |
echo `git show -s --pretty='tformat: %h (%s, %ad)' --date=short $r` >> $f; | |
done | |
which_server="test" | |
if cat app/src/main/java/com/profsys/routine/utils/$app_name.java |grep configure | grep Production; then | |
which_server="produksjons" | |
fi | |
echo "NB: Bygget kobles til $which_server tjeneren" >> $f | |
echo "\nTakk for testingen!" >> $f | |
echo "\`\`\`" >> $f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment