From e11dee220f53cd49cf8922b47c261ae2894b33c0 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Fri, 25 May 2018 22:22:32 +0200 Subject: [PATCH] Adde dHTTP version check for fdroid. --- .gitignore | 4 +++- build.sh | 10 ++++++++++ version.sh | 10 +++------- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100755 build.sh diff --git a/.gitignore b/.gitignore index 56b1517..2842d7c 100644 --- a/.gitignore +++ b/.gitignore @@ -216,4 +216,6 @@ gradle-app.setting release/ -crowdin.properties \ No newline at end of file +crowdin.properties + +publish-version.sh \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..90eb61f --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +BASE_VERSION="v1.6" +TODAYS_VERSION="1" + +VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" + +./version.sh ${VERSION} $@ + +./publish-version.sh ${VERSION} $@ diff --git a/version.sh b/version.sh index f8413eb..1561caf 100755 --- a/version.sh +++ b/version.sh @@ -1,14 +1,10 @@ #!/bin/bash # You can pass --force as first parameter to force push and tag creation. -BASE_VERSION="v1.6" -TODAYS_VERSION="1" -VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" +echo "Creating tag $1" -echo "Creating tag $VERSION" - -git tag $VERSION $1 +git tag $1 $@ echo "Pushing tag" -git push origin $VERSION $1 +git push origin $1 $@