@@ -147,16 +147,33 @@ function pushEntity( string $name , string $text = '' , string $path = '' )
147147 $ lname = strtolower ( $ name );
148148 if ( isset ( $ mixedCase [ $ lname ] ) && $ mixedCase [ $ lname ] != $ name )
149149 {
150- echo "\n\n" ;
151- echo "BROKEN BUILD on case insensitive file systems! \n" ;
152- echo "Detected distinct file entities only by case: \n" ;
153- echo " - {$ mixedCase [ $ lname ]}\n" ;
154- echo " - $ name \n" ;
155- echo "This will PERMANENTLY BRICK manual build on Windows machines! \n" ;
156- echo "Avoid committing this on repository, and if it's already committed, \n" ;
157- echo "revert and send a heads up on mailinst how to fix the issue. \n\n" ;
158- echo "See https://github.com/php/doc-en/pull/4330#issuecomment-2557306828 " ;
159- echo "\n\n" ;
150+ echo <<<END
151+ \n\n
152+ BROKEN BUILD on case insensitive file systems!
153+
154+ Detected file entities names, distinct only by case:
155+ - {$ mixedCase [ $ lname ]}
156+ - $ name
157+
158+ This may PERMANENTLY BRICK manual build on Windows machines!
159+
160+ If you are seeing this message building doc-en, avoid committing any changes
161+ on repository, and if it's already committed, revert and send a heads up on
162+ mail lists, on how to fix the issue (refer to this message).
163+
164+ If you are seeing this message building a translation, this means that the
165+ translation may have files or directories that differ from doc-en only by
166+ upper or lower case letters. Find these differences and fix them at the git
167+ level ('git mv"). After, delete the files and 'git restore' them, to see if
168+ the 'git mv' worked.
169+
170+ This message only may be visible on non-Windows machines. Mixed cases inside
171+ a repository, or between repositories, may only cause difficult to debug build
172+ failures on Windows, without any other information. There is no easy fix for
173+ this than a complete new checkout of the affected repository.
174+
175+ See: https://github.com/php/doc-en/pull/4330#issuecomment-2557306828 \n\n
176+ END ;
160177 exit ( 1 );
161178 }
162179 $ mixedCase [ $ lname ] = $ name ;
0 commit comments