mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #35516 from rallytime/bp-34441
Back-port #34441 to 2016.3
This commit is contained in:
commit
e86a39a115
1 changed files with 11 additions and 11 deletions
|
@ -26,8 +26,8 @@ Set "PATH=%NSIS%;%PATH%"
|
|||
If Exist "%BinDir%\" rd /S /Q "%BinDir%"
|
||||
|
||||
:: Copy the Python27 directory to bin
|
||||
@echo xcopy /S /E "%PyDir%" "%BinDir%\"
|
||||
xcopy /S /E "%PyDir%" "%BinDir%\"
|
||||
@echo xcopy /E /Q "%PyDir%" "%BinDir%\"
|
||||
xcopy /E /Q "%PyDir%" "%BinDir%\"
|
||||
@ echo.
|
||||
|
||||
:: Remove the fixed path in .exe files
|
||||
|
@ -41,11 +41,11 @@ xcopy /S /E "%PyDir%" "%BinDir%\"
|
|||
@ echo Cleaning up unused files and directories...
|
||||
@ echo -------------------------------------------
|
||||
:: Remove all Compiled Python files (.pyc)
|
||||
del /S /Q "%BinDir%\*.pyc"
|
||||
del /S /Q "%BinDir%\*.pyc" 1>nul
|
||||
:: Remove all Compiled HTML Help (.chm)
|
||||
del /S /Q "%BinDir%\*.chm"
|
||||
del /S /Q "%BinDir%\*.chm" 1>nul
|
||||
:: Remove all empty text files (they are placeholders for git)
|
||||
del /S /Q "%BinDir%\..\empty.*"
|
||||
del /S /Q "%BinDir%\..\empty.*" 1>nul
|
||||
|
||||
:: Delete Unused Docs and Modules
|
||||
If Exist "%BinDir%\Doc" rd /S /Q "%BinDir%\Doc"
|
||||
|
@ -57,16 +57,16 @@ If Exist "%BinDir%\Lib\test" rd /S /Q "%BinDir%\Lib\test"
|
|||
If Exist "%BinDir%\Lib\unit-test" rd /S /Q "%BinDir%\Lib\unit-test"
|
||||
|
||||
:: Delete Unused .dll files
|
||||
If Exist "%BinDir%\DLLs\tcl85.dll" del /S /Q "%BinDir%\DLLs\tcl85.dll"
|
||||
If Exist "%BinDir%\DLLs\tclpip85.dll" del /S /Q "%BinDir%\DLLs\tclpip85.dll"
|
||||
If Exist "%BinDir%\DLLs\tk85.dll" del /S /Q "%BinDir%\DLLs\tk85.dll"
|
||||
If Exist "%BinDir%\DLLs\tcl85.dll" del /S /Q "%BinDir%\DLLs\tcl85.dll" 1>nul
|
||||
If Exist "%BinDir%\DLLs\tclpip85.dll" del /S /Q "%BinDir%\DLLs\tclpip85.dll" 1>nul
|
||||
If Exist "%BinDir%\DLLs\tk85.dll" del /S /Q "%BinDir%\DLLs\tk85.dll" 1>nul
|
||||
|
||||
:: Delete Unused .lib files
|
||||
If Exist "%BinDir%\libs\_tkinter.lib" del /S /Q "%BinDir%\libs\_tkinter.lib"
|
||||
If Exist "%BinDir%\libs\_tkinter.lib" del /S /Q "%BinDir%\libs\_tkinter.lib" 1>nul
|
||||
|
||||
:: Delete .txt files
|
||||
If Exist "%BinDir%\NEWS.txt" del /q "%BinDir%\NEWS.txt"
|
||||
If Exist "%BinDir%\README.txt" del /q "%BinDir%\README.txt"
|
||||
If Exist "%BinDir%\NEWS.txt" del /q "%BinDir%\NEWS.txt" 1>nul
|
||||
If Exist "%BinDir%\README.txt" del /q "%BinDir%\README.txt" 1>nul
|
||||
@ echo.
|
||||
|
||||
@ echo Building the installer...
|
||||
|
|
Loading…
Add table
Reference in a new issue