Merge pull request #2115 from ByteHamster/about_date

Updating copyright date automatically
This commit is contained in:
Martin Fietz 2016-10-02 22:05:40 +02:00 committed by GitHub
commit 6fd909689d
2 changed files with 3 additions and 2 deletions

View File

@ -178,7 +178,8 @@ task filterAbout {
from "src/main/templates/about.html"
into "src/main/assets"
filter(ReplaceTokens, tokens: [versionname: android.defaultConfig.versionName,
commit : "git rev-parse --short HEAD".execute().text])
commit : "git rev-parse --short HEAD".execute().text,
year : new Date().format('yyyy')])
}
}

View File

@ -52,7 +52,7 @@
<p>Created by Daniel Oeh</p>
<p>Copyright &copy; 2015 AntennaPod Contributors <a href="CONTRIBUTORS.txt">(View)</a></p>
<p>Copyright &copy; 2012-@year@ AntennaPod Contributors <a href="CONTRIBUTORS.txt">(View)</a></p>
<p>Licensed under the MIT License <a href="LICENSE.txt">(View)</a></p>
</div>