mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
13 lines
317 B
Bash
Executable File
13 lines
317 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: normalize-en-markdown.sh <path>
|
|
set -e
|
|
BASE_DIR=$(dirname $(readlink -f $0))
|
|
TEMP_FILE=$(mktemp)
|
|
trap 'rm -f -- "${TEMP_FILE}"' INT TERM HUP EXIT
|
|
INPUT="$1"
|
|
if [[ ! -L "${INPUT}" ]]
|
|
then
|
|
cat "${INPUT}" > "${TEMP_FILE}"
|
|
"${BASE_DIR}/translate.sh" "en" "${TEMP_FILE}" "${INPUT}"
|
|
fi
|