Skip to content

Commit ff9e1ec

Browse files
committed
Build script for Foundation site
1 parent 6afaa54 commit ff9e1ec

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

config-f.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
define('DISTDIR', BASEDIR.'distribution/');
1515
define('EXAMPLESDIR', BASEDIR.'examples/');
1616
//define('BASEDIRUP', dirname(__FILE__).'/..');
17-
define('FOUNDDIR', dirname(__FILE__).'/../../..'));
17+
//define('FOUNDDIR', dirname(__FILE__).'/../../..'));
1818

1919
require_once(DOMITDIR.'xml_domit_include.php');
2020
require_once(GENLIBDIR.'xhtml.class.php');

generate/foundation.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
putenv('HOME=' . CONTENTDIR);
1212

1313
$source = CONTENTDIR."static/foundation-site/";
14-
//$dest = $path."foundation-site/";
15-
$dest = FOUNDDIR;
14+
$dest = $path."foundation-site/";
15+
//$dest = FOUNDDIR;
1616

1717
$page = new Page("Foundation Overview", "Foundation Overview");
1818
$page->content(file_get_contents($source."overviewf.html"));
1919
writeFile($dest."index.html", $page->out());
20-
#copydirr($source.'/images', $path.'/images');
20+
copydirr($source.'/imgs', $dest.'/images');
2121

2222
//echo("hey");
2323
//echo($dest);
@@ -51,6 +51,8 @@
5151
//writeFile($dest."donate/index.html", $page->out());
5252

5353

54+
55+
5456
$benchmark_end = microtime_float();
5557
$execution_time = round($benchmark_end - $benchmark_start, 4);
5658

0 commit comments

Comments
 (0)