From 830f4559a02cdd44094ea64b6c018172ddc59fc7 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 29 Sep 2012 18:26:57 +0300 Subject: [PATCH] batch files: switch to the batch file directory before doing anything else so that relative paths work right even if the batch file isn't called from its directory --- build.bat | 2 ++ gui/help/buildhelp.bat | 2 ++ htdocs/site/minify.bat | 2 ++ 3 files changed, 6 insertions(+) diff --git a/build.bat b/build.bat index 11c30b1ee..9c075594e 100644 --- a/build.bat +++ b/build.bat @@ -13,6 +13,8 @@ REM REM TODO: REM - run tests too +pushd %~dp0 + if "%1" == "" goto help REM Qt prompt sets QMAKESPEC diff --git a/gui/help/buildhelp.bat b/gui/help/buildhelp.bat index 5fa5c68d6..0a3126b8a 100644 --- a/gui/help/buildhelp.bat +++ b/gui/help/buildhelp.bat @@ -1,4 +1,6 @@ @echo off +pushd %~dp0 + if exist online-help.qhc del online-help.qhc if exist online-help.qch del online-help.qch diff --git a/htdocs/site/minify.bat b/htdocs/site/minify.bat index 737a061d0..b7a2e3ed4 100644 --- a/htdocs/site/minify.bat +++ b/htdocs/site/minify.bat @@ -1,4 +1,6 @@ @echo off +pushd %~dp0 + cleancss -o css/all.min.css css/all.css && ^ cleancss -o css/demo.min.css css/demo.css && ^ uglifyjs -o js/github.min.js js/github.js && ^