36 lines
No EOL
1.1 KiB
Batchfile
36 lines
No EOL
1.1 KiB
Batchfile
@echo off
|
|
REM =============================================================
|
|
REM
|
|
REM Copyright (c) 2020 Simon Southwell. All rights reserved.
|
|
REM
|
|
REM Date: 12th Sep 2020
|
|
REM
|
|
REM Script to pull latest EL-GENERIC-IP files into local
|
|
REM subtree of repository.
|
|
REM
|
|
REM See https://confluence.gisapps.co.uk/display/EL/EL+Subtrees
|
|
REM for more details
|
|
REM
|
|
REM =============================================================
|
|
|
|
REM check if in the correct directory (i.e. firmware exists)
|
|
if not exist firmware (
|
|
@echo No firmware directory found. Check you are in your repository's top level folder. Exiting
|
|
@exit /b
|
|
)
|
|
|
|
REM check if there is still a link to generic_ip
|
|
if exist firmware\generic_ip (
|
|
echo Found firmware\generic_ip. Please check that the subtree has been added and remove the link before proceeding. Exiting
|
|
exit /b
|
|
)
|
|
|
|
REM check if there is a subtree folder
|
|
if not exist firmware\el_generic_ip (
|
|
echo Didn't find firmware\el_generic_ip. Subtree doesn't exist. Please run elgip_add.bat to add the subtree. Exiting
|
|
exit /b
|
|
)
|
|
|
|
echo Pulling latest subtree files from repository
|
|
|
|
git subtree pull --prefix=firmware/el_generic_ip EL-GENERIC-IP master |