Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
575 B

#!/bin/sh
# Update version
FILE="app/build.gradle"
CODE=`grep "versionCode .*" $FILE | sed "s/versionCode //"`
VERSIONCODE=$(($CODE + 1))
sed -i "s/versionCode .*$/versionCode $VERSIONCODE/; s/versionName .*$/versionName \"$1\"/" $FILE
# Save change-log
CHNAGELOG="metadata/en-US/changelogs/$VERSIONCODE.txt"
echo -e "$2" > "$CHNAGELOG"
pandoc -f markdown -t plain --wrap=none "$CHNAGELOG" -o "$CHNAGELOG"
tail -n +3 "$CHNAGELOG" > "$CHNAGELOG.tmp" && mv "$CHNAGELOG.tmp" "$CHNAGELOG"
sed -i "s/ \((.*)\)//" "$CHNAGELOG"
# marked -i "$CHNAGELOG" -o "$CHNAGELOG" --sanitize