OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 function preamble { | 6 function preamble { |
7 | 7 |
8 encoding="$1" | 8 encoding="$1" |
9 cat <<PREAMBLE | 9 cat <<PREAMBLE |
10 # *************************************************************************** | 10 # *************************************************************************** |
11 # * | 11 # * |
12 # * Generated from index-$encoding.txt ( | 12 # * Generated from index-$encoding.txt ( |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 printf("<U%04X> \\x%02X |0\n", i, i);} \ | 53 printf("<U%04X> \\x%02X |0\n", i, i);} \ |
54 } \ | 54 } \ |
55 !/^#/ && !/^$/ \ | 55 !/^#/ && !/^$/ \ |
56 { | 56 { |
57 printf ("<U%4s> \\x%02X |0\n", substr($2, 3), $1 + 0x80); \ | 57 printf ("<U%4s> \\x%02X |0\n", substr($2, 3), $1 + 0x80); \ |
58 }' ${index} | sort >> ${output} | 58 }' ${index} | sort >> ${output} |
59 echo 'END CHARMAP' >> ${output} | 59 echo 'END CHARMAP' >> ${output} |
60 rm ${index} | 60 rm ${index} |
61 done | 61 done |
62 | 62 |
OLD | NEW |