[39195] branches/gsoc08-framework/MacPorts_Framework_Release

armahg at macports.org armahg at macports.org
Tue Aug 12 05:15:46 PDT 2008


Revision: 39195
          http://trac.macosforge.org/projects/macports/changeset/39195
Author:   armahg at macports.org
Date:     2008-08-12 05:15:45 -0700 (Tue, 12 Aug 2008)
Log Message:
-----------
Cleaned up code in init.tcl and interpInit.tcl files. Removed SimpleDOMPHelperTool.m file along with its Target from Xcode project.

Modified Paths:
--------------
    branches/gsoc08-framework/MacPorts_Framework_Release/MacPorts.Framework.xcodeproj/project.pbxproj
    branches/gsoc08-framework/MacPorts_Framework_Release/init.tcl
    branches/gsoc08-framework/MacPorts_Framework_Release/interpInit.tcl

Removed Paths:
-------------
    branches/gsoc08-framework/MacPorts_Framework_Release/SimpleDOMPHelperTool.m

Modified: branches/gsoc08-framework/MacPorts_Framework_Release/MacPorts.Framework.xcodeproj/project.pbxproj
===================================================================
--- branches/gsoc08-framework/MacPorts_Framework_Release/MacPorts.Framework.xcodeproj/project.pbxproj	2008-08-12 11:06:26 UTC (rev 39194)
+++ branches/gsoc08-framework/MacPorts_Framework_Release/MacPorts.Framework.xcodeproj/project.pbxproj	2008-08-12 12:15:45 UTC (rev 39195)
@@ -59,13 +59,6 @@
 		6EC2609A0E4272D20013BC48 /* MPHelperCommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 6EC260960E4272D20013BC48 /* MPHelperCommon.c */; };
 		6EC2609B0E4273920013BC48 /* BetterAuthorizationSampleLibInstallTool.c in Sources */ = {isa = PBXBuildFile; fileRef = 6EC260720E426FC80013BC48 /* BetterAuthorizationSampleLibInstallTool.c */; };
 		6EC2609E0E42950C0013BC48 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EC2609D0E42950C0013BC48 /* CoreFoundation.framework */; };
-		6ECD96FB0E465BF100488335 /* SimpleDOMPHelperTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 6ECD96F90E465BF100488335 /* SimpleDOMPHelperTool.m */; };
-		6ECD97090E465C2A00488335 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EB6FC900E45DEA80057962C /* Foundation.framework */; };
-		6ECD970E0E465C7800488335 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6ECD970D0E465C7800488335 /* Security.framework */; };
-		6ECD970F0E465C7800488335 /* Tcl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6EA0F56E0DFEB55E00C15082 /* Tcl.framework */; };
-		6ECD97120E465C8500488335 /* SimpleDOMPHelperTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 6ECD96F90E465BF100488335 /* SimpleDOMPHelperTool.m */; };
-		6ECD97180E465CB300488335 /* MPInterpreterProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EB6FC690E45AC610057962C /* MPInterpreterProtocol.h */; };
-		6ECD973F0E465F6A00488335 /* SimpleDOMPHelperTool in Resources */ = {isa = PBXBuildFile; fileRef = 6ECD97050E465C0F00488335 /* SimpleDOMPHelperTool */; };
 		6ECD98110E484E8400488335 /* MPHelperTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 6ECD98100E484E8400488335 /* MPHelperTool.m */; };
 		6ECD99C60E48B91B00488335 /* MPHelperToolTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 6ECD99C50E48B91B00488335 /* MPHelperToolTest.m */; };
 		6ED12A550E3E55DF0026773D /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6ED12A540E3E55DF0026773D /* Security.framework */; };
@@ -93,13 +86,6 @@
 			remoteGlobalIDString = 6EC260860E426FF10013BC48;
 			remoteInfo = MPHelperInstallTool;
 		};
-		6ECD97400E465F7400488335 /* PBXContainerItemProxy */ = {
-			isa = PBXContainerItemProxy;
-			containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
-			proxyType = 1;
-			remoteGlobalIDString = 6ECD97040E465C0F00488335;
-			remoteInfo = SimpleDOMPHelperTool;
-		};
 		6ED12A520E3E55A50026773D /* PBXContainerItemProxy */ = {
 			isa = PBXContainerItemProxy;
 			containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
@@ -145,7 +131,6 @@
 		6E88D1CB0DF4B90B00684E9F /* MPMacPortsTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPMacPortsTest.m; sourceTree = "<group>"; };
 		6EA0F56E0DFEB55E00C15082 /* Tcl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Tcl.framework; path = System/Library/Frameworks/Tcl.framework; sourceTree = SDKROOT; };
 		6EAFD8B70DEC614E00E97270 /* dummycommit.test */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dummycommit.test; sourceTree = "<group>"; };
-		6EB6FB620E44AF140057962C /* MPHelperTool.m.old2 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MPHelperTool.m.old2; sourceTree = "<group>"; };
 		6EB6FC690E45AC610057962C /* MPInterpreterProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPInterpreterProtocol.h; sourceTree = "<group>"; };
 		6EB6FC900E45DEA80057962C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
 		6EC260700E426FC80013BC48 /* BetterAuthorizationSampleLib.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = BetterAuthorizationSampleLib.c; sourceTree = "<group>"; };
@@ -155,8 +140,6 @@
 		6EC260950E4272D20013BC48 /* MPHelperCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPHelperCommon.h; sourceTree = "<group>"; };
 		6EC260960E4272D20013BC48 /* MPHelperCommon.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = MPHelperCommon.c; sourceTree = "<group>"; };
 		6EC2609D0E42950C0013BC48 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
-		6ECD96F90E465BF100488335 /* SimpleDOMPHelperTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleDOMPHelperTool.m; sourceTree = "<group>"; };
-		6ECD97050E465C0F00488335 /* SimpleDOMPHelperTool */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SimpleDOMPHelperTool; sourceTree = BUILT_PRODUCTS_DIR; };
 		6ECD970D0E465C7800488335 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
 		6ECD98100E484E8400488335 /* MPHelperTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPHelperTool.m; sourceTree = "<group>"; };
 		6ECD99C40E48B91B00488335 /* MPHelperToolTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPHelperToolTest.h; sourceTree = "<group>"; };
@@ -188,16 +171,6 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
-		6ECD97030E465C0F00488335 /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				6ECD97090E465C2A00488335 /* Foundation.framework in Frameworks */,
-				6ECD970E0E465C7800488335 /* Security.framework in Frameworks */,
-				6ECD970F0E465C7800488335 /* Tcl.framework in Frameworks */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		6ED12A480E3E552F0026773D /* Frameworks */ = {
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
@@ -229,7 +202,6 @@
 				489DD8F40C94365F00595506 /* Test.octest */,
 				6ED12A4A0E3E552F0026773D /* MPHelperTool */,
 				6EC260870E426FF10013BC48 /* MPHelperInstallTool */,
-				6ECD97050E465C0F00488335 /* SimpleDOMPHelperTool */,
 			);
 			name = Products;
 			sourceTree = "<group>";
@@ -369,8 +341,6 @@
 				6EC260720E426FC80013BC48 /* BetterAuthorizationSampleLibInstallTool.c */,
 				6EC260950E4272D20013BC48 /* MPHelperCommon.h */,
 				6EC260960E4272D20013BC48 /* MPHelperCommon.c */,
-				6EB6FB620E44AF140057962C /* MPHelperTool.m.old2 */,
-				6ECD96F90E465BF100488335 /* SimpleDOMPHelperTool.m */,
 				6ECD98100E484E8400488335 /* MPHelperTool.m */,
 			);
 			name = MPHelperTools;
@@ -379,14 +349,6 @@
 /* End PBXGroup section */
 
 /* Begin PBXHeadersBuildPhase section */
-		6ECD97190E465CD100488335 /* Headers */ = {
-			isa = PBXHeadersBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				6ECD97180E465CB300488335 /* MPInterpreterProtocol.h in Headers */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		6ED12AD30E3E9AE10026773D /* Headers */ = {
 			isa = PBXHeadersBuildPhase;
 			buildActionMask = 2147483647;
@@ -454,23 +416,6 @@
 			productReference = 6EC260870E426FF10013BC48 /* MPHelperInstallTool */;
 			productType = "com.apple.product-type.tool";
 		};
-		6ECD97040E465C0F00488335 /* SimpleDOMPHelperTool */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 6ECD970A0E465C4900488335 /* Build configuration list for PBXNativeTarget "SimpleDOMPHelperTool" */;
-			buildPhases = (
-				6ECD97190E465CD100488335 /* Headers */,
-				6ECD97020E465C0F00488335 /* Sources */,
-				6ECD97030E465C0F00488335 /* Frameworks */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = SimpleDOMPHelperTool;
-			productName = SimpleDOMPHelperTool;
-			productReference = 6ECD97050E465C0F00488335 /* SimpleDOMPHelperTool */;
-			productType = "com.apple.product-type.tool";
-		};
 		6ED12A490E3E552F0026773D /* MPHelperTool */ = {
 			isa = PBXNativeTarget;
 			buildConfigurationList = 6ED12A500E3E55660026773D /* Build configuration list for PBXNativeTarget "MPHelperTool" */;
@@ -504,7 +449,6 @@
 			dependencies = (
 				6ED12A530E3E55A50026773D /* PBXTargetDependency */,
 				6EC2608C0E4270110013BC48 /* PBXTargetDependency */,
-				6ECD97410E465F7400488335 /* PBXTargetDependency */,
 			);
 			name = MacPorts;
 			productInstallPath = "$(HOME)/Library/Frameworks";
@@ -528,7 +472,6 @@
 			projectDirPath = "";
 			projectRoot = "";
 			targets = (
-				6ECD97040E465C0F00488335 /* SimpleDOMPHelperTool */,
 				6EC260860E426FF10013BC48 /* MPHelperInstallTool */,
 				6ED12A490E3E552F0026773D /* MPHelperTool */,
 				8DC2EF4F0486A6940098B216 /* MacPorts */,
@@ -557,7 +500,6 @@
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				6ECD973F0E465F6A00488335 /* SimpleDOMPHelperTool in Resources */,
 				6EB6FA460E43ECD60057962C /* MPHelperInstallTool in Resources */,
 				6EB6FA420E43ECCE0057962C /* MPHelperTool in Resources */,
 				8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */,
@@ -632,14 +574,6 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
-		6ECD97020E465C0F00488335 /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				6ECD97120E465C8500488335 /* SimpleDOMPHelperTool.m in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		6ED12A470E3E552F0026773D /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
@@ -664,7 +598,6 @@
 				6E270D0A0E158CED00BAE687 /* MPNotifications.m in Sources */,
 				6EC260760E426FC80013BC48 /* BetterAuthorizationSampleLib.c in Sources */,
 				6EC2609A0E4272D20013BC48 /* MPHelperCommon.c in Sources */,
-				6ECD96FB0E465BF100488335 /* SimpleDOMPHelperTool.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -681,11 +614,6 @@
 			target = 6EC260860E426FF10013BC48 /* MPHelperInstallTool */;
 			targetProxy = 6EC2608B0E4270110013BC48 /* PBXContainerItemProxy */;
 		};
-		6ECD97410E465F7400488335 /* PBXTargetDependency */ = {
-			isa = PBXTargetDependency;
-			target = 6ECD97040E465C0F00488335 /* SimpleDOMPHelperTool */;
-			targetProxy = 6ECD97400E465F7400488335 /* PBXContainerItemProxy */;
-		};
 		6ED12A530E3E55A50026773D /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
 			target = 6ED12A490E3E552F0026773D /* MPHelperTool */;
@@ -880,36 +808,6 @@
 			};
 			name = Release;
 		};
-		6ECD97070E465C1100488335 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				COPY_PHASE_STRIP = NO;
-				GCC_DYNAMIC_NO_PIC = NO;
-				GCC_ENABLE_FIX_AND_CONTINUE = YES;
-				GCC_MODEL_TUNING = G5;
-				GCC_OPTIMIZATION_LEVEL = 0;
-				INSTALL_PATH = /usr/local/bin;
-				PREBINDING = NO;
-				PRODUCT_NAME = SimpleDOMPHelperTool;
-			};
-			name = Debug;
-		};
-		6ECD97080E465C1100488335 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				COPY_PHASE_STRIP = YES;
-				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-				GCC_ENABLE_FIX_AND_CONTINUE = NO;
-				GCC_MODEL_TUNING = G5;
-				INSTALL_PATH = /usr/local/bin;
-				PREBINDING = NO;
-				PRODUCT_NAME = SimpleDOMPHelperTool;
-				ZERO_LINK = NO;
-			};
-			name = Release;
-		};
 		6ED12A4C0E3E55300026773D /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
@@ -1000,15 +898,6 @@
 			defaultConfigurationIsVisible = 0;
 			defaultConfigurationName = Release;
 		};
-		6ECD970A0E465C4900488335 /* Build configuration list for PBXNativeTarget "SimpleDOMPHelperTool" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				6ECD97070E465C1100488335 /* Debug */,
-				6ECD97080E465C1100488335 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
 		6ED12A500E3E55660026773D /* Build configuration list for PBXNativeTarget "MPHelperTool" */ = {
 			isa = XCConfigurationList;
 			buildConfigurations = (

Deleted: branches/gsoc08-framework/MacPorts_Framework_Release/SimpleDOMPHelperTool.m
===================================================================
--- branches/gsoc08-framework/MacPorts_Framework_Release/SimpleDOMPHelperTool.m	2008-08-12 11:06:26 UTC (rev 39194)
+++ branches/gsoc08-framework/MacPorts_Framework_Release/SimpleDOMPHelperTool.m	2008-08-12 12:15:45 UTC (rev 39195)
@@ -1,39 +0,0 @@
-//
-//  SimpleDOMPHelperTool.m
-//  MacPorts.Framework
-//
-//  Created by George  Armah on 8/3/08.
-//  Copyright 2008 Lafayette College. All rights reserved.
-//
-
-
-
-#import <Foundation/Foundation.h>
-#import "MPInterpreterProtocol.h"
-
-int main(int argc, char const * argv[]) {
-	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-	NSString * tclCmd;
-	
-	id distObj = [NSConnection 
-				  rootProxyForConnectionWithRegisteredName:MP_DOSERVER 
-				  host:nil];
-	[distObj setProtocolForProxy:@protocol(MPInterpreterProtocol)];
-	
-	//[distObj log:[NSString stringWithFormat:
-//				  @"Number of arguments are %u", argc]];
-//	[distObj log:[NSString stringWithFormat:
-//				  @"Arguments are %s and %s", argv[0], argv[1]]];
-//	
-//	[distObj log:@"Getting tclCmd"];
-	tclCmd = [NSString stringWithCString:argv[1] encoding:NSUTF8StringEncoding];
-	//[distObj log:[NSString stringWithFormat:
-//				  @"tclCmd is %@", tclCmd]];
-	NSString * result = [distObj evaluateStringFromMPHelperTool:tclCmd];
-	
-	[distObj setTclCommandResult:result];
-
-	[pool release];
-	
-	return 0;
-}
\ No newline at end of file

Modified: branches/gsoc08-framework/MacPorts_Framework_Release/init.tcl
===================================================================
--- branches/gsoc08-framework/MacPorts_Framework_Release/init.tcl	2008-08-12 11:06:26 UTC (rev 39194)
+++ branches/gsoc08-framework/MacPorts_Framework_Release/init.tcl	2008-08-12 12:15:45 UTC (rev 39195)
@@ -1,12 +1,3 @@
-#catch {source \
-#	[file join "/Library/Tcl" macports1.0 macports_fastload.tcl]}
-
-#Trying my own MacPorts build rather than default one on the system
-#catch {source \
-#	[file join "/Users/Armahg/macportsbuild/build1/Library/Tcl" macports1.0 macports_fastload.tcl]}
-
-
-
 package require macports
 package require notifications
 
@@ -86,8 +77,6 @@
 #This is currently under works ... a reasonable solution
 #should be coming up soon
 proc ui_init {priority prefix channels message} {
-	#puts "INSIDE ui_init priority with prefix $prefix and message $message"
-	
 	switch $priority {
 		msg {
 			set nottype "MPMsgNotification" 

Modified: branches/gsoc08-framework/MacPorts_Framework_Release/interpInit.tcl
===================================================================
--- branches/gsoc08-framework/MacPorts_Framework_Release/interpInit.tcl	2008-08-12 11:06:26 UTC (rev 39194)
+++ branches/gsoc08-framework/MacPorts_Framework_Release/interpInit.tcl	2008-08-12 12:15:45 UTC (rev 39195)
@@ -1,12 +1,3 @@
-#catch {source \
-#	[file join "/Library/Tcl" macports1.0 macports_fastload.tcl]}
-
-#Trying my own MacPorts build rather than default one on the system
-#catch {source \
-#	[file join "/Users/Armahg/macportsbuild/build1/Library/Tcl" macports1.0 macports_fastload.tcl]}
-
-
-
 package require macports
 package require simplelog
 
@@ -80,11 +71,7 @@
 }
 
 
-set logDest [ open "/Users/Armahg/Desktop/logFile.txt" w]
-puts $logDest "SOMETHING DEY HERE"
-simplelog "SOMETHING DEY HERE"
 
-
 #Modifying UI initialization to enable notifications
 #Redefine ui_$pritority to throw global notifications
 #This is currently under works ... a reasonable solution
@@ -130,7 +117,6 @@
     if {$nbchans == 0} {
         proc ::ui_$priority {str} [subst {
         	puts stdout "\$str"
-        	puts $logDest "\$str"
         	simplelog "\$str"
         }]
     } else {
@@ -147,14 +133,12 @@
             
             proc ::ui_$priority {str} [subst { 
             	puts $chan "$prefix\$str"
-            	puts $logDest "$prefix\$str"
             	simplelog "$prefix\$str"
             }]
         } else {
         	proc ::ui_$priority {str} [subst {
         		foreach chan \$channels {
         			puts $chan "$prefix\$str"
-        			puts $logDest "$prefix\$str"
         			simplelog "$prefix\$str"
         		}
         	}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080812/4a8e3036/attachment-0001.html 


More information about the macports-changes mailing list