'From etoys4.0 of 9 October 2008 [latest update: #2203] on 8 January 2009 at 6:33:05 pm'! "Change Set: copyright-bf Date: 8 January 2009 Author: Bert Freudenberg Put a full copyright notice into the image, make Smalltalk>>copyright match that, and add a check to release builder so they remain consistent. Also, the about menu offers to show the license now."! !ReleaseBuilderSqueakland methodsFor: 'utilities' stamp: 'bf 1/8/2009 18:05'! checkCopyright | inNotice inImage inFile dir | dir := FileDirectory default. [inFile := (dir readOnlyFileNamed: 'NOTICE') wantsLineEndConversion: true; contentsOfEntireFile] on: FileDoesNotExistException do: [:ex | dir = FileDirectory default ifTrue: [dir := dir containingDirectory. ex retry] ifFalse: [self error: 'NOTICE file not found']]. inFile = Utilities copyrightNotice ifFalse: [self error: 'NOTICE file does not match image']. inNotice := ((Utilities copyrightNotice findTokens: Character cr) select: [:s | s includesSubString: '(c)']) collect: [:s | s withBlanksTrimmed]. inImage := Smalltalk copyright findTokens: Character cr. inNotice = inImage ifFalse: [self error: 'Copyright declarations do not match'].! ! !ReleaseBuilderSqueakland methodsFor: 'olpc' stamp: 'bf 1/8/2009 18:08'! testPrerequired | directory entries projectNames | projectNames := #('Gallery' 'Tutorials' 'EtoysActivity'). directory := FileDirectory on: Smalltalk imagePath. entries := FileList2 projectOnlySelectionMethod: directory entries. projectNames do: [:projectName | (entries anySatisfy: [:each | (Project parseProjectFileName: each first) first = projectName]) ifFalse: [^ self error: projectName , ' is not found']]. self checkCopyright. "Test if the screen resolution is correct" Display extent = (1200 @ 900) ifFalse: [^ self error: 'The display extent should be 1200 @ 900']. ! ! !SmalltalkImage methodsFor: 'sources, changes log' stamp: 'bf 1/8/2009 18:21'! aboutThisSystem "Identify software version" (self confirm: self systemInformationString withCRs, String cr, 'Show license?' translated) ifTrue: [ Utilities copyrightNotice openInWorkspaceWithTitle: 'License' translated]! ! !SystemDictionary methodsFor: 'sources, change log' stamp: 'bf 1/8/2009 16:13'! copyright "The Smalltalk copyright." ^'Copyright (c) 1996 Apple Computer, Inc. All Rights Reserved. Copyright (c) 1996-2009 Viewpoints Research Institute, and Contributors'! ! !Utilities class methodsFor: 'identification' stamp: 'bf 1/8/2009 18:10'! copyrightNotice ^ 'The files "etoys.image" and "EtoysV4.sources" contain portions of the original Squeak 1.1 release, which was relicensed by Apple in 2007 to the Apache 2.0 license: Copyright (c) 1996 Apple Computer, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Everything else is Copyright (c) 1996-2009 Viewpoints Research Institute, and Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '! !