mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
10 lines
293 B
Bash
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"
|