toaruos/util/make-version

11 lines
158 B
Plaintext
Raw Normal View History

2018-03-16 15:56:19 +03:00
#!/bin/bash
VERSION=`git rev-parse --short HEAD`
X=$(git status -s | grep -q '^.M')
if [ $? -eq 0 ]; then
VERSION="$VERSION-dirty"
fi
echo -n $VERSION