diff options
author | sansnom05 <sansnom05@users.sourceforge.net> | 2010-12-16 16:53:08 +0300 |
---|---|---|
committer | sansnom05 <sansnom05@users.sourceforge.net> | 2010-12-16 16:53:08 +0300 |
commit | f0d88a6ff96770b10031dcc59447cca2c7dbc91c (patch) | |
tree | e188e4e733fcf6fc9b00dc349618c19f4d47a7c9 /src/apps/mplayerc/mpcresources/sync.bat | |
parent | 5067b0b48d4d15b24669c8032b28e90e45202801 (diff) |
legacy branch: merge r2662-r2759
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@2778 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/mpcresources/sync.bat')
-rw-r--r-- | src/apps/mplayerc/mpcresources/sync.bat | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/apps/mplayerc/mpcresources/sync.bat b/src/apps/mplayerc/mpcresources/sync.bat new file mode 100644 index 000000000..a2e80103c --- /dev/null +++ b/src/apps/mplayerc/mpcresources/sync.bat @@ -0,0 +1,37 @@ +@echo off
+
+rem An all in one script which demonstrates how to sync all locale rc files to the latest mplayerc.rc.
+rem It will try to patch existing local rc files first, then sync them to mplayerc.rc.
+rem Then it will overwrite rc files with new rc ones, and after that it will generate the text files.
+rem This is only an example.
+
+echo Get the latest mplayerc.rc from repository first...
+svn cat -r head ../mplayerc.rc > $$TEMP$$.old
+if %ERRORLEVEL% neq 0 goto :NOSVNCLI
+echo ----------------------
+
+for %%i in (*.rc) do echo Patching file %%i & perl patch.pl -i text\%%i.txt %%i & echo ----------------------
+echo ----------------------
+
+echo Generating new rc files...
+perl rcfile.pl -b $$TEMP$$.old
+del $$TEMP$$.old
+echo ----------------------
+
+copy newrc\*.rc .
+echo ----------------------
+
+echo Generating new string files...
+copy ..\mplayerc.rc .
+perl rcstrings.pl -a
+del mplayerc.rc
+echo ----------------------
+goto :END
+
+:NOSVNCLI
+echo You'll need svn command line tool to use this script.
+echo Or you can just checkout the head revision of mplayerc.rc file by yourself,
+echo put it somewhere and then use the -b option to point to it.
+
+:END
+pause
|