mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
24 lines
507 B
Bash
24 lines
507 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -o errexit
|
||
|
set -o pipefail
|
||
|
set -o nounset
|
||
|
# set -o xtrace
|
||
|
|
||
|
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||
|
pushd ${SCRIPTPATH}
|
||
|
|
||
|
for script in scripts/* ; do
|
||
|
output="${script##*/}"
|
||
|
output="src/generated/${output%.*}.html"
|
||
|
echo "Generating output for ${script} into ${output} ..."
|
||
|
"${script}" > "${output}"
|
||
|
done
|
||
|
|
||
|
output="src/content/addons-examples.md"
|
||
|
echo "Generating examples content page into ${output} ..."
|
||
|
./render_examples.py > "${output}"
|
||
|
|
||
|
cd src
|
||
|
hugo
|