mirror of
https://github.com/Motion-Project/motion.git
synced 2025-12-23 23:18:21 -05:00
19 lines
445 B
Bash
Executable File
19 lines
445 B
Bash
Executable File
#!/bin/sh
|
|
BASE_VERSION="4.5.1"
|
|
if [ -d .git ]; then
|
|
if test "`git diff --name-only`" = "" ; then
|
|
GIT_COMMIT="git"
|
|
else
|
|
GIT_COMMIT="dirty"
|
|
fi
|
|
GIT_COMMIT=$GIT_COMMIT`git show -s --date=format:'%Y%m%d' --format=%cd-%h` 2>/dev/null
|
|
if [ $? -ne 0 ]; then
|
|
GIT_COMMIT=$GIT_COMMIT`git show -s --format=%h`
|
|
fi
|
|
else
|
|
GIT_COMMIT="gitUNKNOWN"
|
|
fi
|
|
printf "$BASE_VERSION"
|
|
#printf "$BASE_VERSION+$GIT_COMMIT"
|
|
|