mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
git-version hack
This commit is contained in:
parent
dc6c30a825
commit
b125040944
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ install_name_tool -rpath "${RPATH}" "@executable_path/../Frameworks" "${PPSSPPSD
|
|||
echo "Done."
|
||||
|
||||
GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../git-version.cpp")
|
||||
# Hack, need to do something better here.
|
||||
if [ -z "$GIT_VERSION_LINE" ]; then
|
||||
GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../build/git-version.cpp")
|
||||
fi
|
||||
|
||||
echo "Setting version to '${GIT_VERSION_LINE}'..."
|
||||
SHORT_VERSION_MATCH='.*"v([0-9\.]+(-[0-9]+)?).*";'
|
||||
LONG_VERSION_MATCH='.*"v(.*)";'
|
||||
|
|
Loading…
Add table
Reference in a new issue