summaryrefslogtreecommitdiff
path: root/setup/scripts
diff options
context:
space:
mode:
authorMateusz Łukasik <mati75@linuxmint.pl>2015-04-26 20:41:29 +0200
committerMateusz Łukasik <mati75@linuxmint.pl>2015-04-26 20:41:29 +0200
commit6027a8ff2d6ae4eba912427c30c58208009c1ebc (patch)
tree756eddd2fc9e7a9943b43e6ff3f9e92cbd4c3352 /setup/scripts
parent45ee5ac6dc2159352596ce8e8ec744e0c864d492 (diff)
Imported Upstream version 14.9.0.6887~ds0
Diffstat (limited to 'setup/scripts')
-rw-r--r--setup/scripts/install_smplayer.cmd1
-rw-r--r--setup/scripts/make_pkgs.cmd58
2 files changed, 38 insertions, 21 deletions
diff --git a/setup/scripts/install_smplayer.cmd b/setup/scripts/install_smplayer.cmd
index 837e772..585b779 100644
--- a/setup/scripts/install_smplayer.cmd
+++ b/setup/scripts/install_smplayer.cmd
@@ -32,6 +32,7 @@ copy %QT_DIR%\bin\QtGui4.dll %OUTPUT_DIR%
copy %QT_DIR%\bin\QtNetwork4.dll %OUTPUT_DIR%
copy %QT_DIR%\bin\QtXml4.dll %OUTPUT_DIR%
copy %QT_DIR%\bin\QtScript4.dll %OUTPUT_DIR%
+copy %QT_DIR%\bin\QtDBus4.dll %OUTPUT_DIR%
copy %QT_DIR%\bin\mingwm10.dll %OUTPUT_DIR%
if %QTVER% geq 4.6.0 (
copy %QT_DIR%\bin\libgcc_s_dw2-1.dll %OUTPUT_DIR%
diff --git a/setup/scripts/make_pkgs.cmd b/setup/scripts/make_pkgs.cmd
index 799ff95..0c983d5 100644
--- a/setup/scripts/make_pkgs.cmd
+++ b/setup/scripts/make_pkgs.cmd
@@ -90,8 +90,14 @@ if exist "pkg_version" (
echo Format: VER_MAJOR.VER_MINOR.VER_BUILD[.VER_REVISION]
echo VER_REVISION is optional (set to 0 if blank)
-echo.
:pkgver_manual
+echo.
+set ALL_PKG_VER=
+set VER_MAJOR=
+set VER_MINOR=
+set VER_BUILD=
+set VER_REVISION=
+set VER_REV_CMD=
set /p ALL_PKG_VER="Version: "
echo.
@@ -101,28 +107,33 @@ for /f "tokens=2 delims=." %%k in ("%ALL_PKG_VER%") do set VER_MINOR=%%k
for /f "tokens=3 delims=." %%l in ("%ALL_PKG_VER%") do set VER_BUILD=%%l
for /f "tokens=4 delims=." %%m in ("%ALL_PKG_VER%") do set VER_REVISION=%%m
-if [%VER_MAJOR%]==[] (
- echo Major Version # must be specified [#.x.x]
- echo.
- goto pkgver_manual
+echo %VER_MAJOR%|findstr /r /c:"^[0-9][0-9]*$" >nul
+if errorlevel 1 (
+ echo Invalid version string. VER_MAJOR is not defined or is not a number [#.x.x]
+ goto pkgver_manual & ver>nul
)
-if [%VER_MINOR%]==[] (
- echo Minor Version # must be specified [x.#.x]
- echo.
- goto pkgver_manual
+echo %VER_MINOR%|findstr /r /c:"^[0-9][0-9]*$" >nul
+if errorlevel 1 (
+ echo Invalid version string. VER_MINOR is not defined or is not a number [x.#.x]
+ goto pkgver_manual & ver>nul
)
-
-if [%VER_BUILD%]==[] (
- echo Build Version # must be specified [x.x.#]
- echo.
- goto pkgver_manual
+echo %VER_BUILD%|findstr /r /c:"^[0-9][0-9]*$" >nul
+if errorlevel 1 (
+ echo Invalid version string. VER_BUILD is not defined or is not a number [x.x.#]
+ goto pkgver_manual & ver>nul
)
-if [%VER_REVISION%]==[] (
- set VER_REV_CMD=
+if defined VER_REVISION (
+ echo %VER_REVISION%|findstr /r /c:"^[0-9][0-9]*$" >nul
+ if errorlevel 1 (
+ echo Invalid version string. VER_REVISION is not a number [x.x.x.#]
+ goto pkgver_manual & ver>nul
+ ) else (
+ set VER_REV_CMD=/DVER_REVISION=%VER_REVISION% & ver>nul
+ )
) else (
- set VER_REV_CMD= /DVER_REVISION=%VER_REVISION%
+ set VER_REV_CMD=
)
if "%USER_CHOICE%" == "1" goto nsispkg
@@ -143,7 +154,7 @@ echo --- SMPlayer NSIS Package [32-bit] ---
echo.
if exist %TOP_LEVEL_DIR%\smplayer-build (
- %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% %TOP_LEVEL_DIR%\smplayer.nsi
+ %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %VER_REV_CMD% %TOP_LEVEL_DIR%\smplayer.nsi
)
if not "%USER_CHOICE%" == "10" goto end
@@ -153,7 +164,7 @@ echo --- SMPlayer NSIS Package [64-bit] ---
echo.
if exist %TOP_LEVEL_DIR%\smplayer-build64 (
- %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
+ %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %VER_REV_CMD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
)
goto end
@@ -337,13 +348,13 @@ goto end
:portablesfx
if exist %PORTABLE_EXE_DIR%\smplayer-portable.exe (
if exist %TOP_LEVEL_DIR%\smplayer-build (
- %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% %TOP_LEVEL_DIR%\smportable.nsi
+ %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %VER_REV_CMD% %TOP_LEVEL_DIR%\smportable.nsi
)
)
if exist %PORTABLE_EXE_DIR%\smplayer-portable64.exe (
if exist %TOP_LEVEL_DIR%\smplayer-build64 (
- %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% /DWIN64 %TOP_LEVEL_DIR%\smportable.nsi
+ %MAKENSIS_EXE_PATH% /V3 /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %VER_REV_CMD% /DWIN64 %TOP_LEVEL_DIR%\smportable.nsi
)
)
@@ -390,3 +401,8 @@ goto end
pause
:superend
+set ALL_PKG_VER=
+set VER_MAJOR=
+set VER_MINOR=
+set VER_BUILD=
+set VER_REVISION=