]> git.wh0rd.org - tt-rss.git/blobdiff - utils/regen_config_checks.sh
first stage of headline element handling refactoring
[tt-rss.git] / utils / regen_config_checks.sh
index 9e7737858b4cfc4dd2017691abeb9b2e72235034..5ddbef091dd0daa5dca70421e2cf908e67fb2637 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-DESTINATION="sanity_config.php"
+DESTINATION="include/sanity_config.php"
 
 echo "<?php # This file has been generated at: " `date` > $DESTINATION
 
@@ -8,9 +8,9 @@ echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION
 grep CONFIG_VERSION config.php-dist | awk -F ' |)' '{ print $2 }' | xargs echo -n >> $DESTINATION
 echo ");" >> $DESTINATION
 
-echo -n "\$requred_defines = array( " >> $DESTINATION
+echo -n "\$required_defines = array( " >> $DESTINATION
 
-grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | xargs echo -n | grep -v DB_PORT | sed -e s/,$// -e s/*/\'/g >> $DESTINATION
+grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION
 
 echo "); ?>" >> $DESTINATION