source: 2011/26/tekrjant/talletus.bat @ 2331

Revision 2331, 1.1 KB checked in by tekrjant, 8 years ago (diff)

ignoren asettelua

Line 
1@echo off
2
3net use N: /delete 2>NUL
4net use N: \\eppu.it.jyu.fi\mnt "" /u:""
5if errorlevel 1 (
6  echo ERROR: Verkkolevy \\eppu.it.jyu.fi\mnt hukassa
7  goto error
8)
9
10set svn=N:\bin\svn\svn.exe
11
12if not exist %svn% (
13  echo ERROR: svn not found!
14  goto error
15)
16
17call %svn% update
18if errorlevel 1 goto error
19
20call %svn% propget svn:ignore . | find "bin" > NUL
21if errorlevel 1 svn propset -R svn:ignore bin .
22call %svn% propget svn:ignore . | find "obj" > NUL
23if errorlevel 1 svn propset -R svn:ignore obj .
24call %svn% propget svn:ignore . | find "*.suo" > NUL
25if errorlevel 1 svn propset -R svn:ignore *.suo .
26call %svn% propget svn:ignore . | find "*.cachefile" > NUL
27if errorlevel 1 svn propset -R svn:ignore *.cachefile .
28call %svn% propget svn:ignore . | find "*.user" > NUL
29if errorlevel 1 svn propset -R svn:ignore *.user .
30
31call %svn% add * --force
32if errorlevel 1 goto error
33
34call %svn% commit -m "Talletus."
35if errorlevel 1 goto error
36
37color 27
38echo.
39echo VALMIS!
40echo.
41goto finish
42
43
44:error
45color 47
46goto finish
47
48
49:finish
50pause
Note: See TracBrowser for help on using the repository browser.