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
35 local hex="0123456789ABCDEF"
39 #93995380-89BD-4b04-88EB-625FBE52EBFB
40 for ((i=0; i<32; i++)); do
41 (( j = $RANDOM % 16 ))
42 uuid="${uuid}${hex:$j:1}"
44 echo "${uuid:0:8}-${uuid:8:4}-${uuid:12:4}-${uuid:16:4}-${uuid:20:12}"
50 indent="${indent}${indent1}"
53 indent="${indent%${indent1}}"
60 die "Missing attribute value in '$opt' while generating $tag tag"
61 echo "${indent}${opt%%=*}=\"${optval}\""
69 echo "${indent}<${tag}"
74 echo "${indent}<${tag}>"
82 echo "${indent}</${tag}>"
89 echo "${indent}<${tag}"
95 echo "${indent}<${tag}/>"