From 970c568b0588e820d6050b740ba512191f7f1692 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 27 Nov 2022 17:14:40 +0000 Subject: [PATCH] doc build improvements --- doc/build/composer.json | 7 ++++++- doc/build/custom.fo.xsl | 6 +++--- pakefile.php | 8 +++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/build/composer.json b/doc/build/composer.json index f75f1503..2f062f4f 100644 --- a/doc/build/composer.json +++ b/doc/build/composer.json @@ -19,5 +19,10 @@ } } } - ] + ], + "config": { + "allow-plugins": { + "symfony/flex": true + } + } } diff --git a/doc/build/custom.fo.xsl b/doc/build/custom.fo.xsl index b1964c0c..04202ad9 100644 --- a/doc/build/custom.fo.xsl +++ b/doc/build/custom.fo.xsl @@ -11,8 +11,8 @@ --> - - + + @@ -100,4 +100,4 @@ - \ No newline at end of file + diff --git a/pakefile.php b/pakefile.php index a0aaa6b4..2a726d61 100644 --- a/pakefile.php +++ b/pakefile.php @@ -22,7 +22,8 @@ class Builder ); protected static $options = array( 'repo' => 'https://github.com/gggeek/phpxmlrpc', - 'branch' => 'master' + 'branch' => 'master', + 'workspace' => null ); public static function libVersion() @@ -39,7 +40,7 @@ class Builder public static function workspaceDir() { - return self::buildDir().'/workspace'; + return self::option('workspace') != '' ? self::option('workspace') : self::buildDir().'/workspace'; } public static function toolsDir() @@ -352,9 +353,10 @@ function run_dist($task=null, $args=array(), $cliOpts=array()) // copy workspace dir into dist dir, without git pake_mkdirs(Builder::distDir()); $finder = pakeFinder::type('any')->ignore_version_control(); + /// @todo make sure we don't recurse - avoid 'build' dir pake_mirror($finder, realpath(Builder::workspaceDir()), realpath(Builder::distDir())); - // remove unwanted files from dist dir + // @todo remove unwanted files from dist dir - files and dirs from .gitattributes // also: do we still need to run dos2unix? -- 2.47.0