From 9d07b84580a21a3a44777ed27269e3942eed33d7 Mon Sep 17 00:00:00 2001 From: Daryl McDaniel Date: Tue, 22 Dec 2015 23:57:04 +0000 Subject: [PATCH] AppPkg/.../Python-2.7.10: New helper scripts New files libprep.bat and srcprep.bat. These scripts make it easier to set up the source tree and the target system's library directory by automating the required file copy operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19458 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Python/Python-2.7.10/libprep.bat | 20 +++++++++++++++++++ .../Python/Python-2.7.10/srcprep.bat | 13 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 AppPkg/Applications/Python/Python-2.7.10/libprep.bat create mode 100644 AppPkg/Applications/Python/Python-2.7.10/srcprep.bat diff --git a/AppPkg/Applications/Python/Python-2.7.10/libprep.bat b/AppPkg/Applications/Python/Python-2.7.10/libprep.bat new file mode 100644 index 0000000000..1204f3c113 --- /dev/null +++ b/AppPkg/Applications/Python/Python-2.7.10/libprep.bat @@ -0,0 +1,20 @@ +@echo off +REM libprep.bat +REM +REM SYNTAX: libprep +REM +SETLOCAL + +set dest=%1 + +echo Copying files to %dest%. +echo Existing files will be overwritten. +echo. +PAUSE + +REM Copy Distro then PyMod files to the destination +XCOPY Lib %dest% /S /I /Y +XCOPY PyMod-2.7.10\Lib %dest% /S /I /Y + +echo DONE +ENDLOCAL diff --git a/AppPkg/Applications/Python/Python-2.7.10/srcprep.bat b/AppPkg/Applications/Python/Python-2.7.10/srcprep.bat new file mode 100644 index 0000000000..afd55c198d --- /dev/null +++ b/AppPkg/Applications/Python/Python-2.7.10/srcprep.bat @@ -0,0 +1,13 @@ +@echo off +REM Prepare the Python sources for EDK II by copying +REM the .h files from the PyMod tree into the Python tree. +REM Directory correspondence is maintained. + +FOR %%d IN (Include Modules Objects Python) DO ( + echo. + echo Processing the %%d directory. + XCOPY /S /Y /Q PyMod-2.7.10\%%d\*.h %%d +) + +echo. +echo DONE! -- 2.39.2