chiark / gitweb /
Use users.db. trackdb* moves to lib/, as it's now used by client.c to
[disorder] / scripts / text2c
index 23079f3417e1c3d2f72486c37a1a0d4d3125c187..95d2181ad13d5df51dfb63163acd25531503f8b6 100755 (executable)
@@ -1,7 +1,12 @@
 #! /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");
-push(@out, "static const char $name\[] = \n");
+push(@out, "$class const char $name\[] = \n");
 while(<>) {
     next if /arch-tag/;
     s/[\\\"\?]/\\$&/g;
@@ -12,4 +17,3 @@ push(@out, ";\n");
 ((print @out)
  and (close STDOUT))
     or die "$0: stdout: $!\n";
-# arch-tag:2eRG7Dpm6lpL7BR3hPvriQ