3 DESTINATION
="include/sanity_config.php"
5 echo "<?php # This file has been generated at: " `date` > $DESTINATION
7 echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION
8 grep CONFIG_VERSION config.php-dist |
awk -F ' |)' '{ print $2 }' |
xargs echo -n >> $DESTINATION
9 echo ");" >> $DESTINATION
11 echo -n "\$requred_defines = array( " >> $DESTINATION
13 grep define\
( config.php-dist |
awk -F\' '{ print "*" $2 "*," }' |
grep -v DB_PORT |
xargs echo -n |
sed -e s
/,$
// -e s
/*/\'/g
>> $DESTINATION
15 echo "); ?>" >> $DESTINATION