aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/extract_ver.pl
blob: 10db30a03bf94b016ee9f339568967e735e41782 (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";