tdesktop/Telegram/gyp/print_version.sh

16 lines
261 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
FullExecPath=$PWD
pushd `dirname $0` > /dev/null
FullScriptPath=`pwd`
popd > /dev/null
while IFS='' read -r line || [[ -n "$line" ]]; do
set $line
eval $1="$2"
done < "$FullScriptPath/../build/version"
echo $AppVersionStr
exit