~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to setup/scripts/make_pkgs.cmd

  • Committer: Package Import Robot
  • Author(s): Mateusz Łukasik, Mateusz Łukasik, Alessio Treglia
  • Date: 2014-09-10 13:50:48 UTC
  • mfrom: (1.3.3)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20140910135048-t043hd88bhpfvfow
[ Mateusz Łukasik ]
* New upstream release.

[ Alessio Treglia ]
* Repackaging upstream sources to get rid of
  zlib/contrib/dotzlib/DotZLib.chm.
* Enable parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
goto reask
61
61
 
62
62
:pkgver
 
63
if exist "pkg_version" (
 
64
  for /f "tokens=*" %%i in ('type pkg_version') do set ALL_PKG_VER=%%i
 
65
  goto parse_version
 
66
)
63
67
 
64
68
echo Format: VER_MAJOR.VER_MINOR.VER_BUILD[.VER_REVISION]
65
69
echo VER_REVISION is optional (set to 0 if blank)
66
70
echo.
67
 
 
68
 
:pkgver_again
69
 
Set /p ALL_PKG_VER="Version: "
 
71
:pkgver_manual
 
72
set /p ALL_PKG_VER="Version: "
70
73
echo.
71
74
 
 
75
:parse_version
72
76
for /f "tokens=1 delims=." %%j in ("%ALL_PKG_VER%")  do set VER_MAJOR=%%j
73
77
for /f "tokens=2 delims=." %%k in ("%ALL_PKG_VER%")  do set VER_MINOR=%%k
74
78
for /f "tokens=3 delims=." %%l in ("%ALL_PKG_VER%")  do set VER_BUILD=%%l
77
81
if [%VER_MAJOR%]==[] (
78
82
  echo Major Version # must be specified [#.x.x]
79
83
  echo.
80
 
  goto pkgver_again
 
84
  goto pkgver_manual
81
85
)
82
86
 
83
87
if [%VER_MINOR%]==[] (
84
88
  echo Minor Version # must be specified [x.#.x]
85
89
  echo.
86
 
  goto pkgver_again
 
90
  goto pkgver_manual
87
91
)
88
92
 
89
93
if [%VER_BUILD%]==[] (
90
94
  echo Build Version # must be specified [x.x.#]
91
95
  echo.
92
 
  goto pkgver_again
 
96
  goto pkgver_manual
93
97
)
94
98
 
95
99
if [%VER_REVISION%]==[] (
195
199
 
196
200
::
197
201
echo Finalizing package...
198
 
7za a -t7z %OUTPUT_DIR%\smplayer-portable-%ALL_PKG_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak* -xr!qxtcore.dll -xr!mplayer64.exe -xr!mencoder.exe -xr!mencoder64.exe -mx9 >nul
 
202
7za a -t7z %OUTPUT_DIR%\smplayer-portable-%ALL_PKG_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak* -xr!qxtcore.dll -xr!mplayer64.exe -xr!mencoder.exe -xr!mencoder64.exe -xr!mplayer64.exe.debug -xr!mencoder64.exe.debug -xr!mplayer.exe.debug -xr!mencoder.exe.debug -xr!buildinfo -xr!buildinfo64 -mx9 >nul
199
203
 
200
204
echo.
201
205
echo Restoring source folder(s) back to its original state...
279
283
 
280
284
::
281
285
echo Finalizing package...
282
 
7za a -t7z %OUTPUT_DIR%\smplayer-portable-%ALL_PKG_VER%-x64.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak* -xr!qxtcore.dll -xr!mencoder.exe -xr!mencoder64.exe -xr!codecs -mx9 >nul
 
286
7za a -t7z %OUTPUT_DIR%\smplayer-portable-%ALL_PKG_VER%-x64.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak* -xr!qxtcore.dll -xr!mencoder.exe -xr!mencoder64.exe  -xr!mplayer64.exe.debug -xr!mencoder64.exe.debug -xr!mplayer.exe.debug -xr!mencoder.exe.debug -xr!codecs -xr!buildinfo -xr!buildinfo64 -mx9 >nul
283
287
 
284
288
echo.
285
289
echo Restoring source folder(s) back to its original state...