+2007-02-21 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * syncXcodeVersions.sh: fixed substitution bug in case of
+ SUBMINOR_VERSION overflow (>255) - also check if resulting plist
+ is syntactically correct, abort on error
+
2005-10-09 Helge Hess <helge.hess@opengroupware.org>
* make-osxmpkg.sh, make-osxpkg.sh: improved versioning support
# magic happens here
sed "s/\(^[ ]*DYLIB_CURRENT_VERSION =[ ]*\)\(.*\)\(;.*$\)/\1${DYLIB_VERSION}\3/" "${PROJECT}" > "${PROJECT}.new"
- mv ${PROJECT}.new ${PROJECT}
+ OK=`/usr/bin/plutil -lint ${PROJECT}.new | grep OK`
+ if [ "${OK}" != "" ]; then
+ mv ${PROJECT}.new ${PROJECT}
+ else
+ echo "ERROR: couldn't set version ($2) on $1!"
+ exit 6
+ fi
}
set_sope_versions() {
MINOR_VERSION=${_MINOR_VERSION}
fi
# this is always set
- SUBMINOR_VERSION=`sed -n 's/^SUBMINOR_VERSION.*=\(.*\)/\1/p' "${VERS_FILE}"`
+ SUBMINOR_VERSION=`sed -n 's/^SUBMINOR_VERSION.*=\(.*\)/\1/p' "${VERS_FILE}"|tail -1l`
# echo "${VERS_FILE} -> ${MAJOR_VERSION}.${MINOR_VERSION}.${SUBMINOR_VERSION}"
}