[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Thu Dec 30 13:46:39 CET 2010


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	10/12/30 13:46:39

Modified files:
	cm3/scripts/python/: pylib.py 

Log message:
	If target isn't specified on the command line and $CM3_TARGET isn't set,
	then use cm3 -version 2>/dev/null | egrep " +host: +" > /dev/null,
	if it works, before going into uname. (remove spaces, newlines, carriage
	returns, and "host:"; probably should strengthen and take the first
	whitespace-delimited token after "host:", in case we later print more information here?)
	
	This fixes the ambiguity of I386_DARWIN vs. AMD64_DARWIN, and several others.
	LINUXLIBC6 vs. I386_LINUX
	NT386 vs. I386_NT vs. I386_CYGWIN
	etc.
	
	The two other aggressive uname users should do this too!
	scripts/sysinfo.sh
	scripts/regression/defs.sh




More information about the M3commit mailing list