mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 12:40:21 +03:00
10 lines
333 B
Bash
Executable file
10 lines
333 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Writes the latest tagged release from the dmd project on
|
|
# github. This script expects a directory structure in which dmd/ and
|
|
# tools/ live in the same directory.
|
|
|
|
set -o errexit
|
|
cd $(dirname $0)/../dmd
|
|
git fetch --tags git@github.com:dlang/dmd
|
|
git tag | grep '^v[0-9]\.[0-9]*$' | sed 's/^v//' | sort -nr | head -n 1
|