diff --git a/.gitignore b/.gitignore index bea3434..b488382 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ # Temporary files +/temp/ /documentation/ /manual/ /tests/coverage/ -/dist/arch/arsse -/dist/arch/src -/dist/arch/pkg +/dist/arch/arsse/ +/dist/arch/src/ +/dist/arch/pkg/ /arsse.db* /config.php /.php_cs.cache diff --git a/RoboFile.php b/RoboFile.php index 00883f7..fefd24d 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -254,7 +254,7 @@ class RoboFile extends \Robo\Tasks { } // start a task collection and create a temporary directory $t = $this->collectionBuilder(); - $dir = $t->tmpDir().\DIRECTORY_SEPARATOR; + $dir = $t->workDir(BASE."temp").\DIRECTORY_SEPARATOR; $base = $dir."arsse-$version".\DIRECTORY_SEPARATOR; // start by extracting the tarball $t->addCode(function() use ($tarball, $dir, $base) { @@ -266,7 +266,7 @@ class RoboFile extends \Robo\Tasks { $t->addTask($this->taskPack($dir."arsse_$version.orig.tar.gz")->addDir("arsse-$version", $base)); // copy Debian files to lower down in the tree $t->addTask($this->taskFilesystemStack()->mirror($base."dist/debian", $base."debian")); - $t->addTask($this->taskExec("deber")->dir($dir)); + $t->addTask($this->taskExec("deber")->dir($base)); return $t->run(); } diff --git a/dist/arsse b/dist/arsse index b4c56e4..987c159 100644 --- a/dist/arsse +++ b/dist/arsse @@ -1,4 +1,4 @@ -#! /usr/bin/php +#! /usr/bin/env php