aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/extract_ver.pl
blob: 4193d68f91a27c3e85c548aec3322626d0e10f51 (plain)
1
2
3
4
5
6
7
8
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";