dfhack/ci/get-df-version.sh

5 lines
116 B
Bash

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