]> git.wh0rd.org - tt-rss.git/blob - utils/regen_config_checks.sh
sanity config: fix typo
[tt-rss.git] / utils / regen_config_checks.sh
1 #!/bin/sh
2
3 DESTINATION="include/sanity_config.php"
4
5 echo "<?php # This file has been generated at: " `date` > $DESTINATION
6
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
10
11 echo -n "\$required_defines = array( " >> $DESTINATION
12
13 grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION
14
15 echo "); ?>" >> $DESTINATION
16
17