File: img.sed

package info (click to toggle)
moon-buggy 1%3A1.0.51-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,316 kB
  • sloc: ansic: 3,824; sh: 3,567; makefile: 162
file content (49 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# img.sed - used by "Makefile.am" to create "buggy.h"
# Copyright 1999  Jochen Voss
# $Id: img.sed,v 1.3 1999/06/25 23:14:04 voss Rel $

# initialisation
1 {
	i\
/* buggy.h - the image data for "buggy.c"\
 * Automatically created from file "car.img".\
 * DO NOT EDIT !!! */\
\
static char *image[][2] = {
	x
	s/^.*$/  /
	x
}

# closing brackets for the images
1, /^[A-Z0-9]*:/ b ishead
/^[A-Z0-9]*:/ i\
  },
: ishead

# headers
/^[A-Z0-9]*:/ {
	s/\([A-Z0-9]*\):/car_\1, /
	H
	x
	s/\n//
	x
	i\
  {
}

# images
/^|.*|/ s/|\(.*\)|/    "\1",/p

# end
$ {
	i\
  },\
};\
\
enum car_state { 
	x
	p
	i\
};
}