mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
21fef0ded8
mark a build's source.
17 lines
244 B
Bash
Executable file
17 lines
244 B
Bash
Executable file
#!/bin/sh
|
|
|
|
usage() {
|
|
echo "usage: $0"
|
|
exit 1
|
|
}
|
|
|
|
[ -z "$1" ] || usage
|
|
|
|
HASH=$(git log -1 --pretty=format:%H)
|
|
|
|
# mark it with a "+" if anything's changed
|
|
if git status --porcelain | grep -q '^[^\?]'; then
|
|
HASH="${HASH}+M"
|
|
fi
|
|
|
|
echo $HASH
|