Browse code

Added a better message for when we build an unsupported version

Signed-off-by: Ken Cochrane <kencochrane@gmail.com>

Ken Cochrane authored on 2016/03/25 23:09:03
Showing 1 changed files
... ...
@@ -81,6 +81,14 @@ if command -v git &> /dev/null && git rev-parse &> /dev/null; then
81 81
 	GITCOMMIT=$(git rev-parse --short HEAD)
82 82
 	if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
83 83
 		GITCOMMIT="$GITCOMMIT-unsupported"
84
+		echo "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
85
+		echo "# GITCOMMIT = $GITCOMMIT"
86
+		echo "# The version you are building is listed as unsupported because"
87
+		echo "# there are some files in the git repository that are in an uncommited state."
88
+		echo "# Commit these changes, or add to .gitignore to remove the -unsupported from the version."
89
+		echo "# Here is the current list:"
90
+		git status --porcelain --untracked-files=no
91
+		echo "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
84 92
 	fi
85 93
 	! BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
86 94
 	if [ -z $BUILDTIME ]; then