chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include configure and compiler details in version output
[disorder]
/
scripts
/
text2c
diff --git
a/scripts/text2c
b/scripts/text2c
index 46b2276efc32a06eb6506c75108f1b30cfc6d962..95d2181ad13d5df51dfb63163acd25531503f8b6 100755
(executable)
--- a/
scripts/text2c
+++ b/
scripts/text2c
@@
-1,7
+1,12
@@
#! /usr/bin/perl -w
#! /usr/bin/perl -w
+my $class = "static";
+if($ARGV[0] eq '-extern') {
+ $class = "";
+ shift;
+}
my $name = shift;
push(@out, "/* autogenerated file, do not edit */\n\n");
my $name = shift;
push(@out, "/* autogenerated file, do not edit */\n\n");
-push(@out, "
static
const char $name\[] = \n");
+push(@out, "
$class
const char $name\[] = \n");
while(<>) {
next if /arch-tag/;
s/[\\\"\?]/\\$&/g;
while(<>) {
next if /arch-tag/;
s/[\\\"\?]/\\$&/g;