Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
###########
# What to do before running this script:
# - openUp needs to be installed.
# - Set VERSION, BUILD_IN_DEBUG_MODE, BETA, and OFFICIAL_BUILD below.
# * The Adium plists will automatically updated to match these values.
# * BETA should be TRUE for all beta builds and FALSE for all releases.
# It primarily affects the appcast used by Adium for detecting updates.
# * BUILD_IN_DEBUG_MODE should be set to FALSE for the last beta
# in addition to the release itself. If FALSE, debug logging is disabled
# and certain space optimizations for nibs and strings are done which
# also prevent modification.
# * OFFICIAL_BUILD is TRUE for the benefit of our Adium build machine, which signs
# official release builds. When building a release yourself, set this to FALSE,
# since you don't have the Adium certificate on your machine.
#
# How to run this script:
# - make all
###########
VERSION=1.5.10.4
BUILD_IN_DEBUG_MODE?=FALSE
BETA?=FALSE
OFFICIAL_BUILD?=TRUE
# Always builds in debug mode.
NIGHTLY?=FALSE
NIGHTLY_REPO?=adium#change to adium-1.4 on the 1.4 branch
NIGHTLY_BRANCH?=default
###########
# To release!
# Releasing requires cachefly access and adiumx.com access.
#
# First upload to cachefly. If you don't have access and need to do a release, get with Evan, Eric, or Zac.
# Triggering the version checker once the release is up:
# 1) Build Adium
# 2) Get the number out of the 'buildnum' file in Adium.app/Contents/Resources
# 3) Paste that number into the appropriate place (adium version or adium-beta version, depending on which you're triggering) in the version.plist file in our public_html folder. *** (2) and (3) are to support the old version checker, in Adium 0.8x and earlier ***
# 4) Update and commit the appcast.xml file in the adium checkout root
# 5) Run the appcast update php script.
###########
###########
# No need for changes below this point
###########
###########
# Variables
###########
SRC_DIR=..
BUILD_DIR=build
ART_DIR=Artwork
ADIUM_DIR=$(BUILD_DIR)/Adium
RELEASE_NAME=Adium_$(VERSION)
VERSION_ESCAPED=$(VERSION)
RELEASE_NAME_ESCAPED=Adium_$(VERSION_ESCAPED)
TARBALL_DIR=adium-$(VERSION)
REVISION=r$(shellhgparent--template{rev})
ifeq ($(NIGHTLY),TRUE)
BETA=FALSE
ADIUM_DIR:=$(ADIUM_DIR)\ $(REVISION)
VERSION_ESCAPED:=$(VERSION_ESCAPED)\ $(REVISION)
VERSION:=$(VERSION)$(REVISION)
BUILD_IN_DEBUG_MODE=TRUE
BUILDFLAGS+="ADIUM_CFLAGS=-DNIGHTLY_RELEASE"
BUILDFLAGS+="ADIUM_NIGHTLY_FLAGS=CACHE_ROOT=/var/tmp/buildbot/com.apple.Xcode.$(strip$(shellid-u))/nightly/$(strip$(NIGHTLY_REPO))/$(strip$(NIGHTLY_BRANCH))"# Required, otherwise wrong precompiled headers are used.
SIGNING_CERT_NAME="Developer ID Application: Instant Messaging Freedom, Inc."
SIGNING_REQUIREMENTS="=designated => anchor apple generic and ((cert leaf[field.1.2.840.113635.100.6.1.9] exists) or ( certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = \"VQ6ZEL8UD3\" ))"
if [[ 0 -ne `hg st $(SRC_DIR) | egrep --invert-match '\?|Info\.plist' | wc -l` ]]; then \
echo 'You have local changes. Please do not build releases from an unclean checkout. You must revert the changes, commit them, or check out another working copy and build from that.' 1>&2; \
exit 1; \
fi
assertnoconflicts:
if [[ 0 -ne `hg st $(SRC_DIR) | egrep '^C' | wc -l` ]]; then \
echo 'You have conflicts in your checkout. You will not be able to build until these are resolved. Also, remember that even after you have fixed all conflict marks, you must use "hg resolve"; otherwise, hg will still believe the files are conflicted.' 1>&2; \