Permalink
Browse files

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
  • Loading branch information...
1 parent fc97eda commit 830f4559a02cdd44094ea64b6c018172ddc59fc7 @XhmikosR XhmikosR committed with Sep 29, 2012
Showing with 6 additions and 0 deletions.
  1. +2 −0 build.bat
  2. +2 −0 gui/help/buildhelp.bat
  3. +2 −0 htdocs/site/minify.bat
View
@@ -13,6 +13,8 @@ REM
REM TODO:
REM - run tests too
+pushd %~dp0
+
if "%1" == "" goto help
REM Qt prompt sets QMAKESPEC
@@ -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
@@ -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 && ^

0 comments on commit 830f455

Please sign in to comment.