3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved.
5 ## Use of this source code is governed by a BSD-style license
6 ## that can be found in the LICENSE file in the root of the source
7 ## tree. An additional intellectual property rights grant can be found
8 ## in the file PATENTS. All contributing project authors may
9 ## be found in the AUTHORS file in the root of the source tree.
12 if [ "$(uname -o 2>/dev/null)" = "Cygwin" ] \
13 && cygpath --help >/dev/null 2>&1; then
20 echo "${self_basename}: $@" >&2
25 echo "Unknown option \"$1\"." >&2
26 echo "See ${self_basename} --help for available options." >&2
36 # Output one, possibly changed based on the system, path per line.
41 # Corrects the paths in file_list in one pass for efficiency.
43 # TODO(jzern): this could be more generic and take the array as a param.
44 files=$(fix_path "${file_list[@]}")
50 local hex="0123456789ABCDEF"
54 #93995380-89BD-4b04-88EB-625FBE52EBFB
55 for ((i=0; i<32; i++)); do
56 (( j = $RANDOM % 16 ))
57 uuid="${uuid}${hex:$j:1}"
59 echo "${uuid:0:8}-${uuid:8:4}-${uuid:12:4}-${uuid:16:4}-${uuid:20:12}"
65 indent="${indent}${indent1}"
68 indent="${indent%${indent1}}"
75 die "Missing attribute value in '$opt' while generating $tag tag"
76 echo "${indent}${opt%%=*}=\"${optval}\""
84 echo "${indent}<${tag}"
89 echo "${indent}<${tag}>"
97 echo "${indent}</${tag}>"
103 if [ $# -ne 0 ]; then
104 echo "${indent}<${tag}"
110 echo "${indent}<${tag}/>"