Abort release if there are uncommitted changes.
authorEmil Mikulic <emikulic@gmail.com>
Mon, 20 Jun 2011 13:17:32 +0000 (23:17 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Tue, 21 Jun 2011 12:22:28 +0000 (22:22 +1000)
release.sh

index bc01831..0b3e4fc 100755 (executable)
@@ -91,6 +91,11 @@ run autoconf
 run autoheader
 run ./config.status
 run ./test_headers.sh
+if git status --porcelain | egrep -v '^\?\?' -q; then
+  say ERROR: uncommitted changes:
+  git status
+  exit 1
+fi
 run mkdir $PKG
 run cp -r $files $PKG/.
 run sed -e "/AC_INIT/s/darkstat, [^,)]*/darkstat, $VERSION/" configure.ac > $PKG/configure.ac