Created
August 20, 2012 16:30
-
-
Save zeroeth/3405568 to your computer and use it in GitHub Desktop.
Jurassic Park movie source code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CheckOutActive - Check the active window out for modification | |
# | |
# Usage: Called by a userdefined menu item | |
# | |
# CheckOutActive uses the ProjectInfo command to determine the | |
# parent project for the file open as the Active window. Once this | |
# project has been determined, the file open as the Active window | |
# can be properly checked out. | |
# | |
# © Apple Computer, Inc. 1988 | |
# All rights reserved. | |
End | |
# Request a comment before we check the file out. It is still possible | |
# that the checkout will fail because the lastest revision on the trunk | |
# is already checked out for modification by someone else. | |
(Set comment "`Request -d "{Task}" "What changes will you make?" || Set error {Status}`") | |
If {error} == 0 | |
Evaluate "{®3}" =~ /(,([0-9.]+[a-z]*)*)®4[0-9.]+/ # {®4} contains the branch | |
If "{comment}" ‚ "" | |
Checkout -t "{comment}" -c -m -project "{®2}" "{Active}{®4}" | |
Else | |
Checkout -c -m -project "{®2}" "{Active}{®4}" | |
End | |
If {Status} ‚ 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Found this at http://www.joecullin.com/site/2012/01/jurassic-park-source-code/ during a random googling and quoting expedition. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do we need another reason to use git? How about "inferior source code revision tool with default file locking causes cascading security failure, leading to the deaths of dozens, and two horrible movie sequels."