From: znek Date: Tue, 14 Dec 2004 17:09:52 +0000 (+0000) Subject: new pre-commit fixup script X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d14d52e5939be8ea6725e3db1fd9ed6beb79b51;p=sope new pre-commit fixup script git-svn-id: http://svn.opengroupware.org/SOPE/trunk@443 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/maintenance/ChangeLog b/maintenance/ChangeLog index 2057df1e..13bc6cec 100644 --- a/maintenance/ChangeLog +++ b/maintenance/ChangeLog @@ -1,3 +1,13 @@ +2004-12-14 Marcus Mueller + + * znek-fix-xcode-projects.sh: added my personal pre-commit Xcode + check & fix script + +2004-11-07 Marcus Mueller + + * syncXcodeVersions.sh: script file to adjust the framework versions + used in the Xcode files to those used by the GNUmakefile process + 2004-10-17 Helge Hess * mod_ngobjweb*.spec: fixed URL (pointed to libical) diff --git a/maintenance/znek-fix-xcode-projects.sh b/maintenance/znek-fix-xcode-projects.sh new file mode 100755 index 00000000..e3607e7c --- /dev/null +++ b/maintenance/znek-fix-xcode-projects.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# znek's fixes for Xcode projects + +TMPFILE=/tmp/znek-fix-xcode-projects_$$ + +fixProject() +{ + # $1 - xcode project + + PROJ=$1 + +# 1. Replace /Local/BuildArea (my build area) with /Library/Frameworks + cat ${PROJ} | sed -e 's;/Local/BuildArea;/Library/Frameworks;g' > ${TMPFILE} + mv ${TMPFILE} ${TMPFILE}_1 + +# 2. build filter for frameworks + FILTER="" + for f in SaxObjC DOM XmlRpc EOControl NGExtensions NGHttp NGObjWeb NGStreams NGXmlRpc SoObjects WebDAV NGImap4 NGMail NGMime SOPEX + do + FILTER="${FILTER} -e s;/Library/Frameworks/${f}.framework;\"\$(USER_LIBRARY_DIR)/Frameworks/${f}.framework\";g" + done + cat ${TMPFILE}_1 | sed ${FILTER} > ${TMPFILE} + rm -f ${TMPFILE}_1 + diff -q ${TMPFILE} ${PROJ} > /dev/null 2>&1 + if [ ! $? -eq 0 ]; then + cp ${TMPFILE} ${PROJ} + echo "${PROJ} fixed" + fi + rm -f ${TMPFILE} +} + +PROJECTS=`find . -name "*.pbxproj"` +for p in ${PROJECTS} +do + fixProject "$p" +done \ No newline at end of file