Line | |
---|
1 | @echo off |
---|
2 | |
---|
3 | net use N: /delete 2>NUL |
---|
4 | net use N: \\eppu.it.jyu.fi\mnt "" /u:"" |
---|
5 | if errorlevel 1 ( |
---|
6 | echo ERROR: Verkkolevy \\eppu.it.jyu.fi\mnt hukassa |
---|
7 | goto error |
---|
8 | ) |
---|
9 | |
---|
10 | set svn=N:\bin\svn\svn.exe |
---|
11 | |
---|
12 | if not exist %svn% ( |
---|
13 | echo ERROR: svn hukassa! |
---|
14 | goto error |
---|
15 | ) |
---|
16 | |
---|
17 | call %svn% update |
---|
18 | if errorlevel 1 goto error |
---|
19 | |
---|
20 | call %svn% add . --force --config-option config:miscellany:global-ignores="*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store *.suo *.cachefile bin obj *.user TestResults *.ctbackup" |
---|
21 | if errorlevel 1 goto error |
---|
22 | |
---|
23 | call %svn% commit -m "Talletus." |
---|
24 | if errorlevel 1 goto error |
---|
25 | |
---|
26 | color 27 |
---|
27 | echo. |
---|
28 | echo VALMIS! |
---|
29 | echo. |
---|
30 | goto finish |
---|
31 | |
---|
32 | |
---|
33 | :error |
---|
34 | color 47 |
---|
35 | goto finish |
---|
36 | |
---|
37 | |
---|
38 | :finish |
---|
39 | pause |
---|
Note: See
TracBrowser
for help on using the repository browser.