[wp-hackers] Nightly build generation
Dennis Williamson
dennis at netstrata.com
Tue Nov 30 23:25:28 UTC 2004
Could we add (per mosquito issue 437)?:
echo -e "<?php\n\n\$wp_build = '$BUILD_DATE';\n\n?>" >
wp-includes/build-date.php
(adjust directory so it fits the appropriate place)
Doing it this way avoids messing with version.php.
Also, in Kitty's original version:
cd /tmp/build-nightly && rm -rf *; # don't want to rm unless in dir
The '&&' is an if-and-only-if that should prevent the rm from being
executed if the cd fails, thus preventing total annihilation. But her later
version has better error checking which prevents files from being spilled
in the wrong place. However, this:
else
echo "couldn't find build dir."
fi
goes nowhere when run in a cron job. It should either be mailed or logged.
Dennis
More information about the hackers
mailing list