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

This commit is contained in:
XhmikosR 2012-09-29 18:26:57 +03:00 committed by Daniel Marjamäki
parent fc97edab1b
commit 830f4559a0
3 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,8 @@ REM
REM TODO:
REM - run tests too
pushd %~dp0
if "%1" == "" goto help
REM Qt prompt sets QMAKESPEC

View File

@ -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

View File

@ -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 && ^