aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/extract_ver.pl
diff options
context:
space:
mode:
Diffstat (limited to 'code/unix/extract_ver.pl')
-rwxr-xr-xcode/unix/extract_ver.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/code/unix/extract_ver.pl b/code/unix/extract_ver.pl
new file mode 100755
index 0000000..4193d68
--- /dev/null
+++ b/code/unix/extract_ver.pl
@@ -0,0 +1,9 @@
+#!/usr/bin/env perl
+# extracting version string from game/q_shared.h
+# hacked from Wolf build process
+
+# extract the wolf version from q_shared.h
+$line = `cat ../game/q_shared.h | grep Q3_VERSION`;
+chomp $line;
+$line =~ s/.*Q3\ (.*)\"/$1/;
+print "$line\n";