summaryrefslogtreecommitdiff
path: root/tools/version
blob: f11c0e8b3be1c19e6c5efbfb9270940394c8b944 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -e

## tools/version
##
## Print the current version of the project to stdout. Data comes from Cargo.

cd "$(dirname "$0")/.."

cargo metadata \
	--format-version 1 |
jq -r '.packages[] | select(.name == "pilcrow") | .version'