27if ( PHP_SAPI !=
'cli' ) {
28 die(
"This script can only be run from the command line.\n" );
42 exit(
'No CREDITS file found. Are you running this script in the right directory?' );
46foreach (
$lines as $line ) {
56 $name = substr( $line, 2 );
62$lines = explode(
"\n", (
string)shell_exec(
'git log --format="%aN"' ) );
63foreach (
$lines as $line ) {
64 if ( empty( $line ) ) {
67 if ( str_starts_with( $line,
'[BOT]' ) ) {
75$collator->setAttribute( Collator::NUMERIC_COLLATION, Collator::ON );
if(!file_exists( $CREDITS)) $lines
if(PHP_SAPI !='cli') $CREDITS
Update the CREDITS list by merging in the list of git commit authors.