TranslateProject/scripts/badge.sh
darksun 57ed76cd50 添加badge
测试通过,还原检查
2018-10-24 22:52:56 +08:00

11 lines
324 B
Bash
Executable File

#!/usr/bin/env bash
# 重新生成badge
set -o errexit
SCRIPTS_DIR=$(cd $(dirname "$0") && pwd)
BUILD_DIR=$(cd $SCRIPTS_DIR/.. && pwd)/build
mkdir -p ${BUILD_DIR}/badge
for catalog in published translated translating sources;do
${SCRIPTS_DIR}/badge/show_status.sh -s ${catalog} > ${BUILD_DIR}/badge/${catalog}.svg
done