]> www.vanbest.org Git - tv_grab_nl_java/commitdiff
Added --testing flag to release script to make non-official releases
authorJan-Pascal van Best <janpascal@vanbest.org>
Sun, 1 Apr 2012 20:34:40 +0000 (22:34 +0200)
committerJan-Pascal van Best <janpascal@vanbest.org>
Sun, 1 Apr 2012 20:34:40 +0000 (22:34 +0200)
release.sh

index 898fbad99e57bf85d95a3f3e86a98e776fb1c680..5375412ade6d5d5333c4161bae557f5d1daa2067 100755 (executable)
@@ -2,9 +2,11 @@
 
 VERSION=$( xsltproc pom_version.xsl pom.xml )
 
-if ! head Changelog | grep -q "tv_grab_nl_java-$VERSION"; then
-  echo "Release $VERSION not found in changelog, please update Changelog first";
-  exit 1;
+if [ "$1" != "--testing" ]; then
+  if ! head Changelog | grep -q "tv_grab_nl_java-$VERSION"; then
+    echo "Release $VERSION not found in changelog, please update Changelog first";
+    exit 1;
+  fi
 fi
 
 tmpdir=$( mktemp -d ) || exit 1