Last change
on this file since 34 was
34,
checked in by hartmans, 18 years ago
|
Add xen and xen-common
|
-
Property svn:executable set to
*
|
File size:
928 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # |
---|
4 | # mkhex: Generate C embeddable hexdumps |
---|
5 | # |
---|
6 | # Leendert van Doorn, leendert@watson.ibm.com |
---|
7 | # Copyright (c) 2005, International Business Machines Corporation. |
---|
8 | # |
---|
9 | # This program is free software; you can redistribute it and/or modify it |
---|
10 | # under the terms and conditions of the GNU General Public License, |
---|
11 | # version 2, as published by the Free Software Foundation. |
---|
12 | # |
---|
13 | # This program is distributed in the hope it will be useful, but WITHOUT |
---|
14 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
15 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
16 | # more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License along with |
---|
19 | # this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
20 | # Place - Suite 330, Boston, MA 02111-1307 USA. |
---|
21 | # |
---|
22 | |
---|
23 | echo "unsigned $1[] = {" |
---|
24 | od -v -t x $2 | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$/,/' |
---|
25 | echo "};" |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.