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