ReaderforSelfoss/build.sh

16 lines
311 B
Bash
Raw Normal View History

2018-05-25 20:22:32 +00:00
#!/bin/bash
2018-10-14 13:59:02 +00:00
BASE_VERSION="1.7"
2018-05-25 20:22:32 +00:00
TODAYS_VERSION="1"
2018-05-26 08:51:11 +00:00
VERSION="${BASE_VERSION//./}$(date '+%y%m%j')$TODAYS_VERSION"
2018-05-25 20:22:32 +00:00
2018-10-14 13:57:22 +00:00
./version.sh ${VERSION} $1
if [[ "$@" == *'--publish'* ]]
then
./publish-version.sh ${VERSION}
else
echo "Did not publish. If you wanted to do so, call the script with \"--publish\"."
fi