Skip to content

Commit 736a26f

Browse files
committed
Mark XPIs dirty when there are uncommitted changes
1 parent b4f8257 commit 736a26f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

makexpi.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ if [ "$1" ] && [ "$1" != "--fast" ] ; then
135135
XPI_NAME="$XPI_NAME.xpi"
136136
else
137137
# During development, generate packages named with the short hash of HEAD.
138-
XPI_NAME="$XPI_NAME~`git rev-parse --short HEAD`.xpi"
138+
XPI_NAME="$XPI_NAME~`git rev-parse --short HEAD`"
139+
if ! git diff-index --quiet HEAD; then
140+
XPI_NAME="$XPI_NAME-dirty"
141+
fi
142+
XPI_NAME="$XPI_NAME.xpi"
139143
fi
140144

141145
[ -d pkg ] || mkdir pkg

0 commit comments

Comments
 (0)