Przeglądaj źródła

Fix --icu and copyright check

Jack Horton 8 lat temu
rodzic
commit
3420d4e411
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 1 1
      build.sh
  2. 5 1
      tools/configure_icu.py

+ 1 - 1
build.sh

@@ -219,7 +219,7 @@ while [[ $# -gt 0 ]]; do
     --icu=*)
     --icu=*)
         ICU_PATH=$1
         ICU_PATH=$1
         # `eval` used to resolve tilde in the path
         # `eval` used to resolve tilde in the path
-        eval ICU_PATH="${ICU_PATH:13}"
+        eval ICU_PATH="${ICU_PATH:6}"
         if [[ ! -d $ICU_PATH || ! -d $ICU_PATH/unicode ]]; then
         if [[ ! -d $ICU_PATH || ! -d $ICU_PATH/unicode ]]; then
             # if --custom-icu is given, do not fallback to no-icu
             # if --custom-icu is given, do not fallback to no-icu
             echo "!!! couldn't find ICU at $ICU_PATH"
             echo "!!! couldn't find ICU at $ICU_PATH"

+ 5 - 1
tools/configure_icu.py

@@ -1,4 +1,8 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+#-------------------------------------------------------------------------------------------------------
+# Copyright (C) Microsoft. All rights reserved.
+# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+#-------------------------------------------------------------------------------------------------------
 
 
 from __future__ import print_function
 from __future__ import print_function
 import hashlib
 import hashlib