Last active
April 1, 2022 19:00
-
-
Save gustavo8000br/5390c1fe0891e665fbaec6f4008db0df to your computer and use it in GitHub Desktop.
Tool for update all TRUNK'S of one project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| TITLE Tool update all TRUNK of this project | |
| CLS | |
| ECHO Updating trunk of SVN project | |
| ECHO ============================== | |
| FOR /d %%i IN (TRUNK) DO ( | |
| IF EXIST "%%i\.svn" ( | |
| ECHO DIRECTORY: %%i | |
| CMD /c "cd %%i && svn update" | |
| ECHO ============================== | |
| ) | |
| ) | |
| ECHO "Update has completed" | |
| TIMEOUT 5000 |
Author
Author
Works fine too if change "svn" to "git". Only need change line "7" and "9". Change code for your necessity
Exemple:
@ECHO OFF
TITLE Tool update all commits of projects
CLS
ECHO Updating commits of projects
ECHO ==============================
FOR /d %%i IN (*) DO (
IF EXIST "%%i\.git" (
ECHO DIRECTORY: %%i
CMD /c "cd %%i && git pull"
ECHO ==============================
)
)
ECHO "Update has completed"
TIMEOUT 5000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For auto start on boot use this guide, works fine for me:
Link of guide on Stack Overflow