annotate qtuti/95y/mkgo.pl @ 7:3b16a1b57e00 draft default tip

add qtuti/95y.
author pyon
date Sat, 27 Nov 2021 14:50:30 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
1 use utf8;
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
2
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
3 open my $f, '<', $ARGV[1];
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
4 my $cpp = do{local $/; <$f>};
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
5 close $f;
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
6
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
7 open $f, '<', $ARGV[0];
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
8 while (<$f>) {
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
9 s/##### C_SOURCE #####/$cpp/;
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
10 print;
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
11 }
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
12 close $f;
3b16a1b57e00 add qtuti/95y.
pyon
parents:
diff changeset
13