From 310daa959c79054371eecf3e92523a6e4cd1e09f Mon Sep 17 00:00:00 2001 From: Marius Ursache Date: Sun, 10 Nov 2013 00:01:34 +1100 Subject: Updated build script to git --- Scripts/build-version.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/build-version.pl b/Scripts/build-version.pl index 53c4e91b..9034fc24 100755 --- a/Scripts/build-version.pl +++ b/Scripts/build-version.pl @@ -42,7 +42,8 @@ use Carp; die "$0: Must be run from within Xcode. Exiting..." unless $ENV{"BUILT_PRODUCTS_DIR"}; -my $revision = `svnversion -n ./`; +my $svn2git_migration_compensation = 480; +my $revision = `git log --oneline | wc -l` + $svn2git_migration_compensation; my $plist_path = "$ENV{BUILT_PRODUCTS_DIR}/$ENV{INFOPLIST_PATH}"; my $version = $revision; -- cgit v1.2.3