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

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