php-spark/.spark/build/update-version.sh

13 lines
243 B
Bash
Raw Normal View History

2021-12-09 00:11:38 +00:00
#!/bin/bash
VERSION="$(git describe --tags)"
if [ -z "$VERSION" ]; then
echo "Could not parse version from git"
exit 1
fi
echo -e "<?php define(\"APP_VERSION\", \"$VERSION\");" > src/version
echo -e "* Version: \e[1m$VERSION\e[0m"
2021-12-09 00:11:38 +00:00