-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathupdate_projects.bat
25 lines (21 loc) · 2.84 KB
/
update_projects.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
REM for all examples
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_DUO_LX9.xise copy Template_PSL_Base\circuit\PSL_Papilio_DUO_LX9.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_Pro_LX9.xise copy Template_PSL_Base\circuit\PSL_Papilio_Pro_LX9.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_One_250K.xise copy Template_PSL_Base\circuit\PSL_Papilio_One_250K.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_One_500K.xise copy Template_PSL_Base\circuit\PSL_Papilio_One_500K.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\*.xise copy Template_PSL_Base\circuit\clean.bat "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\*.xise copy Template_PSL_Base\circuit\build_all.bat "%%F"\circuit\*
REM for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\*.xise copy Template_PSL_Base\import_libraries.xtcl "%%F"\*
REM for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\*.xise copy Template_PSL_Base\import_user_libraries.xtcl "%%F"\*
REM for library circuit
cd libraries
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_DUO_LX9.xise copy ..\Template_PSL_Base\circuit\PSL_Papilio_DUO_LX9.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_Pro_LX9.xise copy ..\Template_PSL_Base\circuit\PSL_Papilio_Pro_LX9.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_One_250K.xise copy ..\Template_PSL_Base\circuit\PSL_Papilio_One_250K.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\PSL_Papilio_One_500K.xise copy ..\Template_PSL_Base\circuit\PSL_Papilio_One_500K.xise "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\*.xise copy ..\Template_PSL_Base\circuit\clean.bat "%%F"\circuit\*
for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do if exist "%%F"\circuit\*.xise copy ..\Template_PSL_Base\circuit\build_all.bat "%%F"\circuit\*
REM Update library files - Not needed anymore
REM for /f %%F in ('dir /AD /b') do xcopy ..\Libraries "%%F"\Libraries\ /E /Y
REM for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do copy Template_PSL_Base\clean.bat "%%F"\*
REM for /f %%F in ('dir /AD /b ^| findstr /vile "Template_PSL_Base"') do copy Template_PSL_Base\build_all.bat "%%F"\*