while ($it->valid()) {
if (!$it->isDot()) {
if ($it->isDir()) {
- if ($debug) {
- print "CREATING DIR: " . $web_dir . '/' . $it->getSubPathName() . "\n";
+ // Need to link this directory, since the files in it are created at
+ // runtime.
+ if (strpos($it->getPathName(), $horde_git . '/horde/static') !== false) {
+ if ($debug) {
+ print "LINKING DIRECTORY: " . $web_dir . "/" . $it->getSubPathName() . "\n";
+ }
+ symlink($it->key(), $web_dir . '/' . $it->getSubPathName());
+ } else {
+ if ($debug) {
+ print "CREATING DIR: " . $web_dir . '/' . $it->getSubPathName() . "\n";
+ }
+ mkdir($web_dir . '/' . $it->getSubPathName());
}
- mkdir($web_dir . '/' . $it->getSubPathName());
} else {
if ($debug) {
print "LINKING FILE: " . $web_dir . "/" . $it->getSubPathName() . "\n";
$it->next();
}
-if ($debug) {
- print "\nCHGRP/CHMOD static directory\n";
-}
-if (!empty($static_group)) {
- chgrp($web_dir . '/static', $static_group);
-}
chmod($web_dir . '/static', $static_mode);
print "\nLINKING framework\n";