2
0
mirror of https://github.com/Sude-/lgogdownloader.git synced 2025-03-09 21:01:53 +01:00
2013-04-04 17:51:28 +03:00

10 lines
293 B
Bash

#!/bin/bash
version="LGOGDownloader `grep VERSION_NUMBER < main.cpp | head -n 1 | sed -e 's/.*\([0-9]\+\.[0-9]\+\).*/\1/'`"
if [ -e .git/HEAD ]; then
if git status | grep -q 'modified:'; then
version="${version}M"
fi
version="$version git `git rev-parse --short HEAD`"
fi
echo "$version"