Skip to content

Commit

Permalink
fix dir references
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkingorg committed Apr 6, 2009
1 parent ea7ab9e commit d36c0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.php
Expand Up @@ -19,7 +19,7 @@
// svn export https://carrington.googlecode.com/svn/jam/trunk carrington-jam-1.1
// svn export https://carrington.googlecode.com/svn/mobile/trunk carrington-mobile-1.0

define('THEME_PATH', '/tmp/jam/trunk/');
define('THEME_PATH', '/Users/aking/Sites/src/carrington/text/carrington-text/'); // include trailing slash
define('ROOT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');

header('Content-type: text/plain');
Expand Down Expand Up @@ -60,7 +60,7 @@ function cfct_write_readme($dir = '') {

if ($handle = opendir(ROOT_PATH)) {
while (false !== ($dir = readdir($handle))) {
if (is_dir(ROOT_PATH.$dir)) {
if ($dir != '..' && is_dir(ROOT_PATH.$dir) && is_dir(THEME_PATH.$dir)) {
if (cfct_write_readme($dir)) {
echo 'Wrote README to: '.THEME_PATH.$dir."/README.txt\n";
}
Expand Down

0 comments on commit d36c0c4

Please sign in to comment.