[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [https-everywhere/master 1/5] warn about uncommitted changes if the user invokes makexpi.sh with no arguments



Author: Daniel Kahn Gillmor <dkg@xxxxxxxxxxxxxxxxx>
Date: Tue, 9 Nov 2010 14:11:07 -0500
Subject: warn about uncommitted changes if the user invokes makexpi.sh with no arguments
Commit: 62449357b20bedf710fb93987304ed1473523e9b

---
 makexpi.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/makexpi.sh b/makexpi.sh
index d4fc73b..e408f8d 100755
--- a/makexpi.sh
+++ b/makexpi.sh
@@ -21,6 +21,9 @@ if [ "$1" ] ; then
 else
     VERSION="$(grep em:version src/install.rdf | sed -e 's/[<>]/	/g' | cut -f3)~pre"
     TARG=HEAD
+    if [ -n "$(git status -s)" ] ; then
+        printf "WARNING: There are uncommitted changes in your current repostitory.\nWARNING: These changes will not be included in the generated .xpi\nWARNING: Run 'git status' for information about the uncommitted changes.\n" >&2
+    fi
 fi
 XPI_NAME="pkg/$APP_NAME-$VERSION.xpi"
 
-- 
1.7.1