Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Specify Postgres version in build settings #34

Closed
wants to merge 1 commit into from

2 participants

@AquaGeek

No description provided.

@mattt

Great suggestion. I've merged something similar into 683a604.

By using the user setting in a pre-processor compiler directive, and with a little finagling, I was able to evaluate that string in code, to compare against the string of the current version of Postgres. Very neat.

@mattt mattt closed this
@AquaGeek

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 20, 2012
  1. @AquaGeek
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 Postgres.xcodeproj/project.pbxproj
View
4 Postgres.xcodeproj/project.pbxproj
@@ -841,7 +841,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "#!/bin/sh\n\nmkdir -p ${PROJECT_DIR}/src\ncd ${PROJECT_DIR}/src\n\n/usr/bin/curl -O \"http://ftp.postgresql.org/pub/source/v9.1.4/postgresql-9.1.4.tar.bz2\"\n/usr/bin/tar xzf postgresql-9.1.4.tar.bz2\ncd postgresql-9.1.4\n\nsh ./configure --prefix=\"${PROJECT_DIR}/Postgres/Vendor/postgres\" --enable-thread-safety --without-docdir --with-openssl --with-gssapi --with-bonjour --with-krb5 --with-libxml --with-libxslt --with-ossp-uuid --with-perl --with-python\n/usr/bin/make install-world\n";
+ shellScript = "#!/bin/sh\n\nmkdir -p ${PROJECT_DIR}/src\ncd ${PROJECT_DIR}/src\n\n/usr/bin/curl -O \"http://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.bz2\"\n/usr/bin/tar xzf postgresql-${POSTGRES_VERSION}.tar.bz2\ncd postgresql-${POSTGRES_VERSION}\n\nsh ./configure --prefix=\"${PROJECT_DIR}/Postgres/Vendor/postgres\" --enable-thread-safety --without-docdir --with-openssl --with-gssapi --with-bonjour --with-krb5 --with-libxml --with-libxslt --with-ossp-uuid --with-perl --with-python\n/usr/bin/make install-world\n";
};
F805351C15388B2A000E1BAC /* Download, Configure, & Install geos */ = {
isa = PBXShellScriptBuildPhase;
@@ -1219,6 +1219,7 @@
F805350515388AE5000E1BAC /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ POSTGRES_VERSION = 9.1.4;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
@@ -1226,6 +1227,7 @@
F805350615388AE5000E1BAC /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ POSTGRES_VERSION = 9.1.4;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Something went wrong with that request. Please try again.