]> git.wh0rd.org - tt-rss.git/blobdiff - utils/regen_config_checks.sh
php: remove trailing whitespaces
[tt-rss.git] / utils / regen_config_checks.sh
index 78f2dbfbab619d9e38cce58a575194dc3bdfdd96..e81d3673e8fb7e1476494951a579672d3be67c13 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
 
@@ -10,7 +10,7 @@ echo ");" >> $DESTINATION
 
 echo -n "\$requred_defines = array( " >> $DESTINATION
 
-grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | xargs echo -n | 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