repo.or.cz
/
s-roff.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* doc/groff.texinfo: Improved section on number registers. Other minor updates.
[s-roff.git]
/
gendef.sh
blob
e2b2575ffbd4d8c0197ffdbc46e10abe50687324
1
# gendef filename var=val var=val
2
3
file
=
$1
4
shift
5
6
defs
=
"#define
$1
"
7
shift
8
for
def
9
do
10
defs
=
"
$defs
11
#define
$def
"
12
done
13
14
t
=/
tmp
/
groff
.$$
15
16
sed
-e
's/=/ /'
>
$t
<<EOF
17
$defs
18
EOF
19
20
test -r
$file
&&
cmp
-s
$t $file
||
cp
$t $file
21
22
rm
-f
$t
23
24
exit
0