From 58d03a9e44672099e639ae13517f0ac6340677b3 Mon Sep 17 00:00:00 2001 From: znek Date: Tue, 15 Mar 2005 00:53:01 +0000 Subject: [PATCH] improved maintenance script & bumped appropriate versions git-svn-id: http://svn.opengroupware.org/SOPE/trunk@654 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- maintenance/ChangeLog | 4 ++++ maintenance/syncXcodeVersions.sh | 20 +++++++++++++++++++ .../NGHttp/NGHttp.xcode/project.pbxproj | 2 +- .../NGObjWeb/NGObjWeb.xcode/project.pbxproj | 4 ++-- .../SoObjects/SoObjects.xcode/project.pbxproj | 2 +- .../WebDAV/WebDAV.xcode/project.pbxproj | 2 +- 6 files changed, 29 insertions(+), 5 deletions(-) diff --git a/maintenance/ChangeLog b/maintenance/ChangeLog index 038b69ea..5596a39e 100644 --- a/maintenance/ChangeLog +++ b/maintenance/ChangeLog @@ -1,3 +1,7 @@ +2005-03-15 Marcus Mueller + + * syncXcodeVersions.sh: update SOPE* versions if necessary + 2005-01-04 Marcus Mueller * znek-fix-xcode-projects.sh: added SoOFS diff --git a/maintenance/syncXcodeVersions.sh b/maintenance/syncXcodeVersions.sh index 9c9a8be7..5fa29007 100755 --- a/maintenance/syncXcodeVersions.sh +++ b/maintenance/syncXcodeVersions.sh @@ -18,6 +18,23 @@ set_dylib_version() { mv ${PROJECT}.new ${PROJECT} } +set_sope_versions() { + # $1 project dir + # $2 MAJOR number + # $3 MINOR number + # $4 SUBMINOR number + + PROJECT=$1/project.pbxproj + SOPE_MAJOR=$2 + SOPE_MINOR=$3 + SOPE_SUBMINOR=$4 + + # magic happens here + sed -e "s/\(SOPE_MAJOR_VERSION=\)\([1234567890]*\)/\1${SOPE_MAJOR}/" -e "s/\(SOPE_MINOR_VERSION=\)\([1234567890]*\)/\1${SOPE_MINOR}/" -e "s/\(SOPE_SUBMINOR_VERSION=\)\([1234567890]*\)/\1${SOPE_SUBMINOR}/" "${PROJECT}" > "${PROJECT}.new" + mv ${PROJECT}.new ${PROJECT} +} + + get_dylib_version () { # $1 project dir PROJECT=$1/project.pbxproj @@ -85,6 +102,9 @@ update_project_if_necessary() { if [ "${PROJECT_DYLIB_VERSION}" != "${PROJECT_MAKE_VERSION}" ]; then echo "Updating $PROJECT_NAME: ${PROJECT_DYLIB_VERSION} -> ${PROJECT_MAKE_VERSION}" set_dylib_version "${PROJECT}" "${PROJECT_MAKE_VERSION}" + PROJECT=$1 + SUBMINOR_VERSION=${PROJECT_MAKE_VERSION##*.} + set_sope_versions "${PROJECT}" "${MAJOR_VERSION}" "${MINOR_VERSION}" "${SUBMINOR_VERSION}" fi fi } diff --git a/sope-appserver/NGObjWeb/NGHttp/NGHttp.xcode/project.pbxproj b/sope-appserver/NGObjWeb/NGHttp/NGHttp.xcode/project.pbxproj index 7d436a47..cb50d025 100644 --- a/sope-appserver/NGObjWeb/NGHttp/NGHttp.xcode/project.pbxproj +++ b/sope-appserver/NGObjWeb/NGHttp/NGHttp.xcode/project.pbxproj @@ -453,7 +453,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.136; + DYLIB_CURRENT_VERSION = 4.5.137; FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; diff --git a/sope-appserver/NGObjWeb/NGObjWeb.xcode/project.pbxproj b/sope-appserver/NGObjWeb/NGObjWeb.xcode/project.pbxproj index 133227aa..8434985f 100644 --- a/sope-appserver/NGObjWeb/NGObjWeb.xcode/project.pbxproj +++ b/sope-appserver/NGObjWeb/NGObjWeb.xcode/project.pbxproj @@ -1589,7 +1589,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.136; + DYLIB_CURRENT_VERSION = 4.5.137; FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -1600,7 +1600,7 @@ HEADER_SEARCH_PATHS = ..; INFOPLIST_FILE = "NGObjWeb-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - OTHER_CFLAGS = "-DSOPE_MAJOR_VERSION=4 -DSOPE_MINOR_VERSION=5 -DSOPE_SUBMINOR_VERSION=136"; + OTHER_CFLAGS = "-DSOPE_MAJOR_VERSION=4 -DSOPE_MINOR_VERSION=5 -DSOPE_SUBMINOR_VERSION=137"; OTHER_LDFLAGS = "-seg1addr 0xC4900000 -headerpad_max_install_names"; OTHER_REZFLAGS = ""; PRODUCT_NAME = NGObjWeb; diff --git a/sope-appserver/NGObjWeb/SoObjects/SoObjects.xcode/project.pbxproj b/sope-appserver/NGObjWeb/SoObjects/SoObjects.xcode/project.pbxproj index a7687ed6..a67212e5 100644 --- a/sope-appserver/NGObjWeb/SoObjects/SoObjects.xcode/project.pbxproj +++ b/sope-appserver/NGObjWeb/SoObjects/SoObjects.xcode/project.pbxproj @@ -281,7 +281,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.136; + DYLIB_CURRENT_VERSION = 4.5.137; FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = NO; diff --git a/sope-appserver/NGObjWeb/WebDAV/WebDAV.xcode/project.pbxproj b/sope-appserver/NGObjWeb/WebDAV/WebDAV.xcode/project.pbxproj index dbac90df..e9b017fe 100644 --- a/sope-appserver/NGObjWeb/WebDAV/WebDAV.xcode/project.pbxproj +++ b/sope-appserver/NGObjWeb/WebDAV/WebDAV.xcode/project.pbxproj @@ -226,7 +226,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.136; + DYLIB_CURRENT_VERSION = 4.5.137; FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = NO; -- 2.39.5