Skip to content

Commit 830f455

Browse files
XhmikosRdanmar
authored andcommitted
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
1 parent fc97eda commit 830f455

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

build.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ REM
1313
REM TODO:
1414
REM - run tests too
1515

16+
pushd %~dp0
17+
1618
if "%1" == "" goto help
1719

1820
REM Qt prompt sets QMAKESPEC

gui/help/buildhelp.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@echo off
2+
pushd %~dp0
3+
24
if exist online-help.qhc del online-help.qhc
35
if exist online-help.qch del online-help.qch
46

htdocs/site/minify.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@echo off
2+
pushd %~dp0
3+
24
cleancss -o css/all.min.css css/all.css && ^
35
cleancss -o css/demo.min.css css/demo.css && ^
46
uglifyjs -o js/github.min.js js/github.js && ^

0 commit comments

Comments
 (0)