]> git.proxmox.com Git - mirror_edk2.git/blob - ArmEbPkg/Debugger_scripts/rvi_convert_symbols.sh
67fdfe1efa14ae279e514f2273f1064f3d2e9ad5
[mirror_edk2.git] / ArmEbPkg / Debugger_scripts / rvi_convert_symbols.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 #
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http:#opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13
14
15 IN=`/usr/bin/cygpath -u $1`
16 OUT=`/usr/bin/cygpath -u $2`
17
18 /usr/bin/sed -e "s/\/cygdrive\/\(.\)/load\/a\/ni\/np \"\1:/g" \
19 -e 's:\\:/:g' \
20 -e "s/^/load\/a\/ni\/np \"/g" \
21 -e "s/dll /dll\" \&/g" \
22 $IN | /usr/bin/sort.exe --key=3 --output=$OUT
23