Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/powertop/files: csstoh
Date: Fri, 01 Jun 2012 18:29:48
Message-Id: 20120601182929.563F92004C@flycatcher.gentoo.org
1 vapier 12/06/01 18:29:29
2
3 Added: csstoh
4 Log:
5 Fix cross-compiling; already sent upstream.
6
7 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-power/powertop/files/csstoh
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/files/csstoh?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/files/csstoh?rev=1.1&content-type=text/plain
14
15 Index: csstoh
16 ===================================================================
17 #!/bin/sh
18
19 in=$1
20 out=$2
21
22 (
23 cat <<EOF
24 #ifndef __INCLUDE_GUARD_CCS_H
25 #define __INCLUDE_GUARD_CCS_H
26
27 const char css[] =
28 EOF
29 sed -e 's:^:\t":' -e 's:$:\\n":' "${in}"
30 cat <<EOF
31 ;
32 #endif
33 EOF
34 ) > "${out}"