aboutsummaryrefslogtreecommitdiff
path: root/mkver.pl
diff options
context:
space:
mode:
Diffstat (limited to 'mkver.pl')
-rw-r--r--mkver.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/mkver.pl b/mkver.pl
new file mode 100644
index 0000000..d17efa6
--- /dev/null
+++ b/mkver.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl -w
+
+$ver = shift || die "Usage: $0 [version]\n";
+
+open F,">dlaver.inc" or die $!;
+print F " .define VERSION \"$ver\"\n";
+close F;
+
+open F,">dlaver.h" or die $!;
+print F "#define VERSION \"$ver\"\n";
+close F;
+
+exit 0;