1- #!/usr/bin/env php -derror_reporting=0
1+ #!/usr/bin/env php
22<?php
33
44/**
@@ -111,21 +111,23 @@ function getDirectory($path)
111111 $ files = array ();
112112
113113 $ ignore = array ('. ' , '.. ' , '.svn ' ,'.DS_Store ' );
114+ $ pathIgnore = array ('lib/Sabre/DAV/Auth ' );
114115
115116 $ d = opendir ($ path );
116117
117118 while (false !== ($ file = readdir ($ d ))) {
118- if (!in_array ($ file , $ ignore )) {
119- if (is_dir ($ path . '/ ' . $ file )) {
120- $ files = array_merge ($ files , getDirectory ($ path . '/ ' . $ file ));
119+ $ newPath = $ path . '/ ' . $ file ;
120+ if (!in_array ($ file , $ ignore ) && !in_array ($ newPath ,$ pathIgnore )) {
121+ if (is_dir ($ newPath )) {
122+ $ files = array_merge ($ files , getDirectory ($ newPath ));
121123 } else {
122- $ files [] = $ path . '/ ' . $ file ;
124+ echo 'Including: ' , $ newPath , "\n" ;
125+ $ files [] = $ newPath ;
123126 }
124127 }
125128 }
126129
127130 closedir ($ d );
128-
129131 return $ files ;
130132}
131133$ files = getDirectory ('lib ' );
@@ -134,7 +136,7 @@ function getDirectory($path)
134136 $ package ->addInstallAs ($ file , substr ($ file , 4 ));
135137}
136138
137- if ( isset ($ _GET ['make ' ])
139+ if (isset ($ _GET ['make ' ])
138140 || (isset ($ _SERVER ['argv ' ]) && @$ _SERVER ['argv ' ][1 ] == 'make ' )
139141) {
140142 $ package ->writePackageFile ();
0 commit comments