]> git.proxmox.com Git - mirror_edk2.git/commitdiff
AppPkg/.../Python-2.7.10: New helper scripts
authorDaryl McDaniel <edk2-lists@mc2research.org>
Tue, 22 Dec 2015 23:57:04 +0000 (23:57 +0000)
committerdarylm503 <darylm503@Edk2>
Tue, 22 Dec 2015 23:57:04 +0000 (23:57 +0000)
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 <edk2-lists@mc2research.org>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19458 6f19259b-4bc3-4df7-8a09-765794883524

AppPkg/Applications/Python/Python-2.7.10/libprep.bat [new file with mode: 0644]
AppPkg/Applications/Python/Python-2.7.10/srcprep.bat [new file with mode: 0644]

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 (file)
index 0000000..1204f3c
--- /dev/null
@@ -0,0 +1,20 @@
+@echo off\r
+REM libprep.bat\r
+REM\r
+REM SYNTAX: libprep <path-to-new-lib-dir>\r
+REM\r
+SETLOCAL\r
+\r
+set dest=%1\r
+\r
+echo Copying files to %dest%.\r
+echo Existing files will be overwritten.\r
+echo.\r
+PAUSE\r
+\r
+REM Copy Distro then PyMod files to the destination\r
+XCOPY Lib %dest% /S /I /Y\r
+XCOPY PyMod-2.7.10\Lib %dest% /S /I /Y\r
+\r
+echo DONE\r
+ENDLOCAL\r
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 (file)
index 0000000..afd55c1
--- /dev/null
@@ -0,0 +1,13 @@
+@echo off\r
+REM Prepare the Python sources for EDK II by copying\r
+REM the .h files from the PyMod tree into the Python tree.\r
+REM Directory correspondence is maintained.\r
+\r
+FOR %%d IN (Include Modules Objects Python) DO (\r
+  echo.\r
+  echo Processing the %%d directory.\r
+  XCOPY /S /Y /Q PyMod-2.7.10\%%d\*.h %%d\r
+)\r
+\r
+echo.\r
+echo DONE!\r