ReaderforSelfoss/build.sh

18 lines
391 B
Bash
Raw Permalink 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
PARAMS_EXCEPT_PUBLISH=$(echo $1 | sed 's/\-\-publish//')
./version.sh ${VERSION} ${PARAMS_EXCEPT_PUBLISH}
2018-10-14 13:57:22 +00:00
if [[ "$@" == *'--publish'* ]]
then
./publish-version.sh ${VERSION}
else
echo "Did not publish. If you wanted to do so, call the script with \"--publish\"."
fi