Files

15 lines
485 B
Bash

#!/bin/bash
set -e
cd /tmp
rm -rf mt86p
git clone --depth 1 https://github.com/memtest86plus/memtest86plus.git mt86p >/tmp/mt86p_clone.log 2>&1 || { tail -5 /tmp/mt86p_clone.log; exit 1; }
cd mt86p
echo "=== version/tag:"
git describe --tags 2>/dev/null || true
grep -rn 'VERSION' app/version.h 2>/dev/null | head -3 || true
echo "=== build docs:"
sed -n '/[Bb]uild/,+25p' README.md | head -60
echo "=== make targets hinted:"
grep -nE '^[a-z0-9_]+:' Makefile 2>/dev/null | head -20
ls