Fix a couple minor release script issues

This commit is contained in:
Gregory Oschwald 2014-10-29 10:11:44 -07:00
parent 8ef95cb4d1
commit 64f2262093

View File

@ -9,7 +9,9 @@ if [ -z $TAG ]; then
exit 1 exit 1
fi fi
rm geoip2.phar if [ -f geoip2.phar ]; then
rm geoip2.phar
fi
if [ -n "$(git status --porcelain)" ]; then if [ -n "$(git status --porcelain)" ]; then
echo ". is not clean." >&2 echo ". is not clean." >&2
@ -57,15 +59,15 @@ fi
cat <<EOF > apigen.neon cat <<EOF > apigen.neon
destination doc/$TAG destination: doc/$TAG
source: source:
../src - ../src
title: "GeoIP2 PHP API $TAG" title: "GeoIP2 PHP API $TAG"
EOF EOF
php apigen.phar php apigen.phar generate
PAGE=index.md PAGE=index.md