xref: /third_party/musl/libc-test/src/functionalext/locale/copy_mo_file.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/libc-test/src/functionalext/locale/
1570af302Sopenharmony_ci#!/bin/bash
2570af302Sopenharmony_ci# Copyright (c) Huawei Technologies Co., Ltd. 2020-2030. All rights reserved.
3570af302Sopenharmony_ciset -e
4570af302Sopenharmony_ci
5570af302Sopenharmony_ciwhile getopts "o:i:t:h" arg
6570af302Sopenharmony_cido
7570af302Sopenharmony_ci    case "${arg}" in
8570af302Sopenharmony_ci        "o")
9570af302Sopenharmony_ci            OUT_DIR=${OPTARG}
10570af302Sopenharmony_ci            ;;
11570af302Sopenharmony_ci        "i")
12570af302Sopenharmony_ci            SOURCE_DIR=${OPTARG}
13570af302Sopenharmony_ci            ;;
14570af302Sopenharmony_ci        "h")
15570af302Sopenharmony_ci            echo "help"
16570af302Sopenharmony_ci            ;;
17570af302Sopenharmony_ci        ?)
18570af302Sopenharmony_ci            echo "unkonw argument"
19570af302Sopenharmony_ci            exit 1
20570af302Sopenharmony_ci            ;;
21570af302Sopenharmony_ci    esac
22570af302Sopenharmony_cidone
23570af302Sopenharmony_ci
24570af302Sopenharmony_ciif [ ! -d "${OUT_DIR}" ];then
25570af302Sopenharmony_ci    mkdir -p ${OUT_DIR}
26570af302Sopenharmony_cifi
27570af302Sopenharmony_ci
28570af302Sopenharmony_cirm -rf ${OUT_DIR}/zh_CN
29570af302Sopenharmony_cimkdir ${OUT_DIR}/zh_CN
30570af302Sopenharmony_cimkdir ${OUT_DIR}/zh_CN/LC_MESSAGES
31570af302Sopenharmony_cicp ${SOURCE_DIR}/src/functionalext/locale/test_dcngettext.mo ${OUT_DIR}/zh_CN/LC_MESSAGES/
32

Indexes created Thu Nov 07 10:32:03 CST 2024