aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
authorMarius Ursache <bamse16@yahoo.com>2013-11-10 00:01:34 +1100
committerMarius Ursache <bamse16@yahoo.com>2013-11-10 00:01:34 +1100
commit310daa959c79054371eecf3e92523a6e4cd1e09f (patch)
tree603afec856c7f1c703a519708ad6353c3586ebb0 /Scripts
parent47619852f3f994e3fcdf968178b2f66b5c0e4a13 (diff)
downloadsequelpro-310daa959c79054371eecf3e92523a6e4cd1e09f.tar.gz
sequelpro-310daa959c79054371eecf3e92523a6e4cd1e09f.tar.bz2
sequelpro-310daa959c79054371eecf3e92523a6e4cd1e09f.zip
Updated build script to git
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/build-version.pl3
1 files changed, 2 insertions, 1 deletions
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;