[Pkg-haskell-commits] darcs: tools: Revert release marker from unsucessful builds

Joachim Breitner mail at joachim-breitner.de
Sun Oct 21 13:57:13 UTC 2012


Fri Oct 19 17:38:20 UTC 2012  Joachim Breitner <mail at joachim-breitner.de>
  * Revert release marker from unsucessful builds
  Ignore-this: 6c212a5d4421e7699e3c00bd02c97383

    M ./mass-build.sh +7

Fri Oct 19 17:38:20 UTC 2012  Joachim Breitner <mail at joachim-breitner.de>
  * Revert release marker from unsucessful builds
  Ignore-this: 6c212a5d4421e7699e3c00bd02c97383
diff -rN -u old-tools//mass-build.sh new-tools//mass-build.sh
--- old-tools//mass-build.sh	2012-10-21 13:57:13.102734661 +0000
+++ new-tools//mass-build.sh	2012-10-21 13:57:13.290743072 +0000
@@ -248,6 +248,13 @@
 		#rm -f setup.sh
 		buildfailed="$buildfailed $dir"
 		popd >/dev/null
+		pushd $dir >/dev/null
+		if darcs diff|diffstat|tail -n1|fgrep -q '1 file changed, 2 insertions(+), 2 deletions(-)'
+		then
+			echo "Reverting release marker."
+			darcs revert -a
+		fi
+		popd >/dev/null
 		echo "Building $dir failed"
 	fi
 done





More information about the Pkg-haskell-commits mailing list