CXX peace: src/troff/input.cpp
[s-roff.git] / font / make-Rproto
blobe6a830c1b72eaf5a164ec28c374785e51fe93b47
1 #!/bin/sh
2 #@ make-Rproto -- script for creating an R.proto file
3 #@ Synopsis:
4 #@ $ make-Rproto R.proto.in < uniuni.cpp > R.proto
5 #@ `R.proto.in' contains the device specific part of the R.proto file;
6 #@ it should end with a line containing the word `charset'.
7 #@ `uniuni.cpp' is located in directory `src/libs/libroff'.
9 # Copyright (c) 2014 - 2017 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
11 # Copyright (C) 2006
12 # Free Software Foundation, Inc.
13 # Written by Werner Lemberg <wl@gnu.org>
15 # This is free software; you can redistribute it and/or modify it under
16 # the terms of the GNU General Public License as published by the Free
17 # Software Foundation; either version 2, or (at your option) any later
18 # version.
20 # This is distributed in the hope that it will be useful, but WITHOUT ANY
21 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 # for more details.
25 # You should have received a copy of the GNU General Public License along
26 # with groff; see the file COPYING. If not, write to the Free Software
27 # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
29 if [ ${#} -ne 1 ]; then
30 echo "Synopsis: ${0} R.proto.in < uniuni.cpp > R.proto"
31 exit 1
34 # Emit preamble.
35 cat "${1}"
37 # Extract composite characters.
38 grep '^ { ".*", ".*_.*" },' |
39 sed 's/ { "\(.*\)", ".\(.*\)" },/u\2 24 0 0x\1/'
41 # s-sh-mode