summaryrefslogtreecommitdiff
path: root/manualPorts/openttd-git/lastVersion.sh
blob: 1f73eb737cc1b2ba1189d733375275eca15298ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

cd /usr/src/github/openttd
git fetch --all -p >/dev/null 2>&1

printf '%s.%s\n' \
  "$((
    $(git rev-list --first-parent --count upstream/master ^f84ad5f7c) + 28004
  ))" \
  "$(
    git rev-parse --short upstream/master
  )"