2020-04-01 19:35:55 +02:00
|
|
|
#!/bin/bash
|
2020-04-16 10:50:39 +02:00
|
|
|
# Copyright (C) 2017-2020 The Project X-Ray Authors.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a ISC-style
|
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
|
# https://opensource.org/licenses/ISC
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: ISC
|
2020-04-01 19:35:55 +02:00
|
|
|
|
2020-04-01 20:22:58 +02:00
|
|
|
DATABASE=$1
|
|
|
|
|
|
|
|
|
|
# If DATABASE is empty, checks htmlgen for all settings files
|
|
|
|
|
SETTINGS=../settings/$DATABASE*.sh
|
2020-04-01 19:35:55 +02:00
|
|
|
|
|
|
|
|
for setting in $SETTINGS
|
|
|
|
|
do
|
2020-04-01 20:22:58 +02:00
|
|
|
no_prefix_setting=${setting#../settings/}
|
|
|
|
|
clean_setting=${no_prefix_setting%.sh}
|
2020-04-01 19:35:55 +02:00
|
|
|
echo ""
|
|
|
|
|
echo "============================================="
|
2020-04-01 20:22:58 +02:00
|
|
|
echo "Generating HTML for ${clean_setting}"
|
2020-04-01 19:35:55 +02:00
|
|
|
echo "============================================="
|
|
|
|
|
echo ""
|
|
|
|
|
source ../settings/$setting
|
2020-04-01 20:22:58 +02:00
|
|
|
./htmlgen.py --output html/${clean_setting}
|
2020-04-01 19:35:55 +02:00
|
|
|
done
|