mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
fix possible error if gen_versions.h does not exists, happens on my msys
This commit is contained in:
@@ -3,7 +3,12 @@ cd $1
|
||||
|
||||
version=`git log -n1 --format="\"%h_git\""`
|
||||
version_macro="#define APP_VERSION $version"
|
||||
current_file=`cat gen_version.h`
|
||||
|
||||
if [ -f gen_version.h ]; then
|
||||
current_file=`cat gen_version.h`
|
||||
else
|
||||
current_files=""
|
||||
fi
|
||||
|
||||
if [ "$version_macro" != "$current_file" ]; then
|
||||
echo "$version_macro" > gen_version.h
|
||||
|
||||
Reference in New Issue
Block a user