summaryrefslogtreecommitdiff
path: root/bin2c.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin2c.pl')
-rw-r--r--bin2c.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin2c.pl b/bin2c.pl
index 9dc8f9f8..feb3ee0e 100644
--- a/bin2c.pl
+++ b/bin2c.pl
@@ -48,3 +48,8 @@ while ( ($n = read(STDIN, $data, 4096)) > 0 ) {
printf "\n};\n\nunsigned int %s_len = %u;\n", $table_name, $total_len;
+@st = stat STDIN;
+
+printf "\nint %s_mtime = %d;\n", $table_name, $st[9];
+
+exit 0;