dfhack/travis/get-df-version.sh

5 lines
107 B
Bash

#!/bin/sh
cd "$(dirname "$0")"
cd ..
grep DF_VERSION CMakeLists.txt | perl -ne 'print "$&\n" if /[\d\.]+/'