diff options
author | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-31 16:26:40 +0000 |
---|---|---|
committer | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-31 16:26:40 +0000 |
commit | 808def96aa4589fba9c2d0ea55837754a3b7a4f7 (patch) | |
tree | 0ea221c59abb2474c694e7ab5bd61006be77e47e /Tools/Python/WorkspaceRoutines.py | |
parent | 9216450d1143056a50a5f916984a2d7faf590488 (diff) | |
download | edk2-platforms-808def96aa4589fba9c2d0ea55837754a3b7a4f7.tar.xz |
Retiring the ANT/JAVA build and removing the older EDK II packages that required ANT/JAVA.
Last Ant/Java build was r7166
Developers requiring the Java/Ant packages should checkout the branch from:
https://edk2.tianocore.org/svn/edk2/branches/AntJava
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7168 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python/WorkspaceRoutines.py')
-rwxr-xr-x | Tools/Python/WorkspaceRoutines.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/Tools/Python/WorkspaceRoutines.py b/Tools/Python/WorkspaceRoutines.py deleted file mode 100755 index c75cd57c52..0000000000 --- a/Tools/Python/WorkspaceRoutines.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2007, Intel Corporation -# All rights reserved. This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -import os, sys, re, getopt, string, glob, xml.dom.minidom, pprint, md5, socket, getpass, time, random - -def inWorkspace(rel_path=""): - """Treat the given path as relative to the workspace.""" - - # Make sure the user has set the workspace variable: - try: - return os.path.join(os.environ["WORKSPACE"], rel_path ) - except: - print "Oops! You must set the WORKSPACE environment variable to run this script." - sys.exit() - -def genguid(): - g = md5.md5( - str(random.random()) + - getpass.getuser() + - str(time.time()) + - socket.gethostbyname(socket.gethostname())).hexdigest() - return Guid("%s-%s-%s-%s-%s" % (g[0:8], g[8:12], g[12:16], g[16:20], g[20:])) - -def lean(path): - """Lean the slashes forward""" - - return os.path.normpath(path).replace("\\", "/") - -def mkdir(path): - """Make a directory if it is not there already.""" - - try: - os.makedirs(path) - except: - pass - -def Md5(filename): - - sum = "" - - try: - f=open(filename, "rb") - sum = md5.md5(f.read()).hexdigest() - f.close() - except IOError: - print "Error: Unable to open file: %s" % filename - sys.exit() - - return sum - -def Guid(guidString): - """Convert the guid string into a canonical form suitable for comparison.""" - return string.lower(guidString) |